@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+KR:wght@400;500;600;700&family=Noto+Serif+KR:wght@500;600;700;800&display=swap");
*{box-sizing:border-box}
:root{color-scheme:light;--ink:#23211e;--muted:#625a51;--paper:#fff;--line:#ddd;--red:#a9371f;--dark:#252822;--display:"Noto Serif KR","Gowun Batang","Batang","AppleMyungjo",serif;font:16px/1.65 "IBM Plex Sans KR","Pretendard","SUIT","Noto Sans KR",system-ui,"Malgun Gothic",sans-serif;color:var(--ink);background:var(--paper);accent-color:var(--red)}
body{margin:0}
a{color:inherit;text-underline-offset:.2em}
a:hover{color:var(--red)}
header{border-top:.38rem solid var(--red);border-bottom:1px solid var(--line);background:var(--paper)}
.mast,main{max-width:1220px;margin-inline:auto;padding-inline:clamp(1rem,4.5vw,3.2rem)}
.mast{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:clamp(1.25rem,5vw,4.5rem);min-height:5.1rem}
.brand{font:800 2.05rem/1.1 "IBM Plex Sans KR","Pretendard","SUIT","Noto Sans KR",system-ui,"Malgun Gothic",sans-serif;letter-spacing:-.07em;text-decoration:none}
nav,.account{display:flex;align-items:center;gap:clamp(.65rem,2.4vw,1.5rem);flex-wrap:wrap;font-weight:640}
nav a,.account a{text-decoration:none}
.account{justify-content:flex-end;font-size:.92rem}
.account form{margin:0}
.account button{padding:.25rem .65rem;background:transparent;color:var(--ink);border:1px solid var(--line)}
main{min-height:72vh;padding-top:2.5rem;padding-bottom:4.5rem}
main.inside{max-width:1000px}
h1,h2,h3{font-family:var(--display);line-height:1.21;letter-spacing:-.055em;text-wrap:balance;margin-block:0 .8rem}
h1{font-size:clamp(2.3rem,5vw,4.15rem);margin-bottom:1.35rem}
h2{font-size:1.6rem}
p{margin:.6rem 0 1rem;white-space:pre-wrap;overflow-wrap:anywhere}
.lead{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,6fr);background:#eae2d1;border-block:1px solid #b2a390;margin-bottom:1.7rem;min-height:20rem}
.lead-copy{align-self:center;padding:clamp(1.35rem,4vw,3.3rem)}
.lead-copy h2{font-size:clamp(2rem,4.4vw,4rem);line-height:1.14}
.lead h2 a,.card h2 a{text-decoration:none}
.lead h2 a:hover,.card h2 a:hover{text-decoration:underline}
.lead-copy>a{display:inline-block;border-bottom:2px solid var(--red);text-decoration:none;color:var(--red);font-weight:720;margin-top:.6rem;padding-bottom:.15rem}
.lead figure{margin:0;position:relative;min-height:16rem;overflow:hidden;background:var(--dark)}
.lead img{position:absolute;width:100%;height:100%;object-fit:cover;object-position:center}
.lead figcaption{position:absolute;right:.6rem;bottom:.5rem;background:#24231eda;color:white;font-size:.78rem;padding:.1rem .5rem}
.meta{font-weight:680;font-size:.9rem;color:var(--muted)}
.lead .meta,.card .meta:first-child{color:#8a321e}
section,.comment{padding:1.3rem 0;border-bottom:1px solid var(--line)}
section:first-of-type:not(.more){border-top:1px solid var(--line)}
section.more{padding:1.9rem 0 0}
.more>h2{padding-bottom:.65rem;border-bottom:2px solid var(--dark)}
.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:1.65rem}
.card{padding:1.25rem 0 1.4rem;border-bottom:1px solid var(--line)}
.card h2{font-size:clamp(1.35rem,2.2vw,1.9rem)}
form{margin:1rem 0}
label{display:grid;gap:.3rem;font-weight:670;margin:.3rem 0 .65rem}
input,textarea,select,button{font:inherit;border-radius:.15rem}
input,textarea,select{border:1px solid #a79b88;padding:.52rem .62rem;background:var(--paper);color:inherit;min-width:0}
textarea{min-height:5.7rem;width:100%}
button{background:var(--dark);color:white;border:1px solid transparent;padding:.52rem .95rem;cursor:pointer;font-weight:680}
button:hover{background:var(--red);color:white}
:focus-visible{outline:3px solid var(--red);outline-offset:3px}
.filters{display:grid;grid-template-columns:minmax(8rem,2fr) minmax(6rem,1.15fr) repeat(2,minmax(8rem,1fr)) auto;gap:.75rem;align-items:end;border-bottom:1px solid var(--line);padding:.7rem 0 1.1rem}
.filters label{margin:0}
dl{display:grid;grid-template-columns:minmax(6rem,1fr) 4fr;gap:.65rem;margin-block:.65rem}
dt{font-weight:750}
dd{margin:0;overflow-wrap:anywhere}
summary{cursor:pointer}
@media(max-width:840px){.filters{grid-template-columns:1fr 1fr}.filters button{grid-column:span 2}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.mast{grid-template-columns:1fr auto;row-gap:.75rem;padding-block:.8rem}.mast nav{grid-row:2;grid-column:span 2}.account{gap:.6rem}.lead{grid-template-columns:1fr}.lead figure{min-height:13rem;grid-row:1}.grid{grid-template-columns:1fr}main{padding-top:1.5rem}.filters{gap:.55rem}.account button{font-size:.8rem}}
h1,h2,h3,p{word-break:keep-all;overflow-wrap:anywhere}
.lead-copy h2{font-size:clamp(1.9rem,4vw,3.65rem)}

.lead:not(:has(figure)){grid-template-columns:1fr;min-height:auto}
.card figure{margin:0 0 .75rem;aspect-ratio:16/9;overflow:hidden;background:#eae2d1}
.card figure img{width:100%;height:100%;object-fit:cover;display:block}
.member-story figure{margin:1.25rem 0}.member-story img{width:auto;max-width:100%;height:auto;max-height:75vh;object-fit:contain;display:block}
.story-body{font-size:.9375rem;line-height:1.65}
input[type=file]{max-width:100%}

.mast nav a[href="/write"]{background:var(--dark);color:white;padding:.35rem .75rem;border-radius:.2rem}
.mast nav a[href="/write"]:hover{background:var(--red)}
.compose-body textarea{min-height:14rem}.attach{font-size:.93rem}.attach input{font-weight:400}
.archive{margin-top:1.35rem}.archive a{color:var(--muted)}

/* Story index */
.list-page{min-height:100vh;background:var(--paper)}
.list-page .mast,.list-page main{max-width:none;padding-inline:clamp(.85rem,2vw,2.25rem)}
.list-page .mast{grid-template-columns:1fr auto;min-height:4.2rem}
.list-page main{padding-top:.8rem;padding-bottom:2rem}
.list-layout{display:grid;grid-template-columns:clamp(10.5rem,16vw,15.5rem) minmax(0,1fr);gap:clamp(.9rem,2.4vw,2.5rem)}
.list-sidebar{border-right:1px solid var(--line);padding-right:clamp(.8rem,2vw,2rem)}
.list-sidebar nav{display:grid;gap:.2rem}
.list-sidebar nav a{display:block;padding:.43rem .56rem;border-radius:.25rem}
.list-sidebar nav a[aria-current=page]{box-shadow:inset .14rem 0 #7d2e1d;color:#7d2e1d}
.list-filters{display:grid;gap:.2rem;margin-top:1.2rem}
.list-filters label{font-size:.84rem}
.list-content h1{font-size:clamp(1.75rem,3vw,2.85rem);text-wrap:wrap;margin-bottom:1rem}
.list-content .list-index-heading{font-family:inherit;font-size:1.2rem;font-weight:750;letter-spacing:-.035em;margin:0 0 .5rem}
.story-list{width:100%;table-layout:fixed;border-collapse:collapse;background:var(--paper);font-size:.9rem}
.story-list :is(th,td){padding:.53rem .66rem;border-bottom:1px solid var(--line);text-align:center;white-space:nowrap}
.story-list thead th{font-size:.82rem;border-top:1px solid var(--line)}
.story-list thead th:first-child,.story-list .row-title{text-align:left}
.story-list thead .row-channel{width:5rem}
.story-list thead th:nth-child(3){width:7rem}
.story-list thead th:nth-child(n+4){width:4.6rem}
.story-list .row-title a{display:flex;align-items:center;gap:.45rem;text-decoration:none;font-weight:710}
.story-list .row-title a > .story-title-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.story-list .row-title .story-thumb{flex:0 0 3.5rem;width:3.5rem;height:2.6rem;display:grid;place-items:center;overflow:hidden;border-radius:.2rem}
.story-list .row-title .story-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.story-video-icon{position:relative;flex:0 0 1rem;width:1rem;height:.72rem;border-radius:.2rem;background:#d22;display:inline-block}
.story-video-icon::after{content:"";position:absolute;left:.39rem;top:.19rem;border-left:.28rem solid #fff;border-top:.17rem solid transparent;border-bottom:.17rem solid transparent}
.story-list .row-title a:hover{text-decoration:underline}
.story-list .row-number,.story-list time{font-variant-numeric:tabular-nums}
.story-list tbody tr:hover{background:#f6f6f6}
@media(max-width:780px){
 .list-layout{grid-template-columns:1fr;gap:.85rem}
 .list-sidebar{padding:0;border:0;border-bottom:1px solid var(--line)}
 .list-sidebar nav{display:flex}
 .list-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.35rem .6rem}
 .list-filters button{grid-column:span 2}
 .story-list :is(th,td){padding:.42rem .23rem}
 .story-list .row-channel,.story-list thead th:nth-child(3),.story-list td:nth-child(3){display:none}
 .story-list thead th:nth-child(n+4){width:2.65rem;font-size:.74rem}
}

.story-engagement{display:flex;align-items:center;gap:1rem}.story-engagement p,.story-engagement form{margin:0}
.story-comments{padding:0;list-style:none}.story-comments li{padding:.7rem 0;border-bottom:1px solid var(--line)}.story-comments li p{margin:.25rem 0 0}

.source-dashboard{width:100%;max-width:none;font-size:.88rem}
.source-dashboard section>h2{font-size:1.35rem}
.source-dashboard section{padding-block:1.1rem}
.source-steps{padding-inline-start:1.45rem}
.source-steps li{padding:.25rem 0}
.source-steps strong{margin-inline-end:.5rem}
.source-table{width:100%;border-collapse:collapse;table-layout:fixed;background:var(--paper);font-size:.9rem}
.source-table :is(th,td){padding:.57rem .72rem;border-bottom:1px solid var(--line);text-align:left;vertical-align:top;overflow-wrap:anywhere}
.source-table thead{border-top:1px solid var(--line)}
.source-table thead th:first-child{width:24%}
.source-table thead th:nth-child(2){width:33%}
.source-record{padding:.65rem .75rem;border-bottom:1px solid var(--line)}
.source-record summary{font-weight:700}
.source-record time{font-size:.82rem;color:var(--muted);margin-inline-start:.4rem}
.source-record p{margin:.15rem 0 .5rem}
.source-dashboard nav{padding-top:.65rem}
@media(max-width:620px){.source-table :is(th,td){padding:.4rem .38rem}.source-record dl{grid-template-columns:1fr;gap:.15rem}.source-record dd{margin-bottom:.55rem}}

.list-panel-detail{max-width:1000px}
.list-panel-detail h1{font-size:clamp(1.5rem,2.1vw,1.85rem);line-height:1.28;text-wrap:wrap;margin-bottom:.65rem}
.panel-back{display:inline-block;margin-bottom:.75rem;font-weight:630;color:var(--red)}
.panel-back:hover{text-decoration:underline}
.list-content h1:focus:not(:focus-visible){outline:none}

.story-delete{margin-inline-start:auto;color:#852e23}
.story-delete summary{font-weight:680}
.story-delete p{margin:.45rem 0}
.story-delete button{background:#852e23}
.story-delete [data-other-reason][hidden]{display:none}.story-delete [data-other-reason] textarea{display:block;width:100%;min-height:5rem;margin-top:.35rem}

.account:has(.account-name){flex-wrap:nowrap;gap:clamp(.42rem,1.65vw,1.3rem)}
.account-name{font-weight:740;white-space:nowrap}
.account .admin-sources-link{color:#7d2e1d;font-weight:730}
.account .admin-sources-link:hover,.account .admin-sources-link[aria-current=page]{text-decoration:underline}
.account:has(.account-name) :is(a,button){white-space:nowrap}
.account:has(.account-name) button{padding:.2rem .38rem}
.story-preview-dock{margin-top:.7rem;padding:.75rem .95rem;border:1px solid var(--line);border-radius:.35rem;background:var(--paper)}
.story-preview-dock[hidden]{display:none}
.preview-heading{display:flex;gap:.6rem;flex-wrap:wrap;align-items:baseline;margin:0 0 .25rem}
.preview-heading span{font-size:.76rem;color:var(--muted)}
.preview-heading strong{font-size:.9rem}
.preview-excerpt{margin:0;font-size:.88rem;line-height:1.55;white-space:pre-line}
@media(max-width:450px){
 .mast:has(.account-name) .brand{font-size:1.8rem}
 .account:has(.account-name){gap:.36rem;font-size:.77rem}
 .account:has(.account-name) button{padding:.1rem .25rem;font-size:inherit}
 .account-name{max-width:5ch;overflow:hidden;text-overflow:ellipsis}
}

.story-edit-link{font-weight:680;color:#7d2e1d}
.remember-login{display:flex;align-items:center;gap:.42rem;margin:.75rem 0}
.remember-login input{margin:0}

.account-withdraw{margin-top:1.25rem}.account-withdraw a{font-size:.9rem;color:#852e23}

.editorial-media{max-width:70rem;margin:1.25rem 0}
.editorial-media img,.editorial-media video{display:block;max-width:100%;max-height:32rem;width:auto;height:auto}
.editorial-media figcaption{font-size:.875rem;margin-top:.5rem}
.editorial-media figcaption small{display:block;margin-top:.2rem}
.illustration-frame{position:relative;display:inline-block;max-width:100%}
.illustration-brand{position:absolute;bottom:.65rem;right:.65rem;color:#fff;background:rgba(19,24,27,.82);padding:.28rem .6rem;font-family:system-ui,sans-serif;font-size:.85rem;font-weight:700;border-radius:.25rem}


.editorial-table-wrap{overflow-x:auto}
.editorial-table{width:100%;min-width:70rem;table-layout:fixed;border-collapse:collapse;font-size:.82rem}
.editorial-table th,.editorial-table td{padding:.58rem .5rem;border-bottom:1px solid var(--line);vertical-align:top;text-align:left}
.editorial-table thead th{background:#f5f3ee;white-space:nowrap}
.editorial-table thead th:nth-child(1){width:8%}
.editorial-table thead th:nth-child(2){width:18%}
.editorial-table thead th:nth-child(3){width:25%}
.editorial-table thead th:nth-child(4),.editorial-table thead th:nth-child(5),.editorial-table thead th:nth-child(6){width:6%}
.editorial-table thead th:nth-child(7){width:8%}
.editorial-table thead th:nth-child(8){width:6%}
.editorial-table thead th:nth-child(9){width:17%}
.editorial-table :is(th:nth-child(2),td:nth-child(2),th:nth-child(3),td:nth-child(3)){word-break:keep-all}
.list-content:has(.source-dashboard)>h1{font-size:clamp(1.5rem,2.1vw,1.85rem);line-height:1.28;text-wrap:wrap;margin-bottom:.65rem}
.editorial-table .editorial-count{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.editorial-table .editorial-status{white-space:nowrap}
.editorial-status[data-deleted="1"]{color:#9d3126;font-weight:700}
.editorial-table time,.editorial-table summary{white-space:nowrap}
.editorial-table td:nth-child(9){overflow-wrap:anywhere}
.editorial-table .source-record{padding:0;border:0}
.editorial-table .source-record[open]{width:100%;min-width:0}

.story-compose-panel,.list-panel-detail:has(> .story-edit){width:100%;min-width:0;max-width:none}
.story-compose-panel .compose-body textarea,.story-edit textarea{min-height:clamp(14rem,44vh,34rem);resize:vertical}
.story-compose-panel form,.story-edit form{display:grid;gap:1rem}
.story-compose-panel form>label>input,.story-edit form>label>input{width:100%}
.story-compose-panel button,.story-edit button{justify-self:start}

.official-video{width:100%;max-width:56rem;margin:1.25rem 0}
.official-video iframe{display:block;width:100%;min-height:200px;aspect-ratio:16/9;border:0}
.official-video figcaption{font-size:.875rem;margin-top:.5rem}

.brand{display:flex;align-items:baseline;gap:.28rem}.brand small{font:600 .78rem/1 "IBM Plex Sans KR","Pretendard","SUIT","Noto Sans KR",system-ui,"Malgun Gothic",sans-serif;letter-spacing:-.02em;color:var(--muted);white-space:nowrap}
