:root{--navy:#0a2e5c;--blue:#125ea7;--ice:#eef5fb;--line:#d9e3ee;--ink:#172331;--muted:#66788a;--white:#fff;--green:#177245}*{box-sizing:border-box}body{margin:0;font-family:Pretendard,"Noto Sans KR","Malgun Gothic",sans-serif;color:var(--ink);background:#f5f8fb;font-size:16px}a{color:inherit;text-decoration:none}button,input{font:inherit}.auth-shell{min-height:100vh;display:grid;grid-template-columns:minmax(360px,1fr) minmax(420px,620px)}.brand-panel{background:linear-gradient(145deg,#071f3d,#0a3e74);color:white;padding:clamp(3rem,8vw,8rem);display:flex;flex-direction:column;justify-content:center}.brand-mark{min-width:96px;width:max-content;padding:0 1rem;height:64px;border:1px solid #ffffff55;border-radius:16px;display:grid;place-items:center;font-size:1.4rem;font-weight:800}.brand-panel h1{font-size:clamp(2.1rem,4vw,4rem);line-height:1.15;margin:2rem 0 1rem;max-width:680px}.brand-panel p{font-size:1.15rem;color:#c6d9ed}.security-note{margin-top:4rem;border-top:1px solid #ffffff30;padding-top:1.4rem;color:#a9c4df}.auth-card{background:white;padding:clamp(2rem,6vw,5rem);display:flex;flex-direction:column;justify-content:center}.auth-card.wide{max-width:760px;width:100%;border:1px solid var(--line);border-radius:20px;box-shadow:0 20px 60px #183c5d15}.auth-card h1,.auth-card h2{font-size:2rem;margin:.6rem 0}.eyebrow{font-size:.78rem;letter-spacing:.15em;font-weight:800;color:var(--blue)}.muted{color:var(--muted);line-height:1.65}.auth-card form{margin-top:2rem}.auth-card label{display:grid;gap:.55rem;font-weight:700;margin-bottom:1.2rem}.auth-card input,.search input{border:1px solid var(--line);border-radius:10px;padding:.9rem 1rem;background:#fbfdff;min-width:0}.auth-card input:focus,.search input:focus{outline:3px solid #1777c922;border-color:var(--blue)}button{border:0;border-radius:10px;padding:.92rem 1.2rem;background:var(--navy);color:white;font-weight:750;cursor:pointer}.auth-card form>button{width:100%;margin-top:.4rem}.auth-links{display:flex;justify-content:space-between;margin-top:1.5rem;color:var(--blue);font-weight:650}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 1.2rem}.form-grid .full{grid-column:1/-1}.form-message{min-height:1.5rem;margin:.5rem 0}.form-message.error{color:#b42318}.form-message.success{color:var(--green)}.single-shell{min-height:100vh;display:grid;place-items:center;padding:2rem;background:linear-gradient(135deg,#edf4fa,#f9fbfd)}.back{color:var(--blue);margin-bottom:2rem}.topbar{height:72px;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 2.2rem}.logo{font-size:1.3rem;font-weight:900;color:var(--navy)}.logo span{font-weight:650;margin-left:.5rem}.user-chip{display:flex;align-items:center;gap:1rem}.user-chip span{color:var(--muted);font-size:.9rem}.ghost{background:transparent;color:var(--navy);border:1px solid var(--line);padding:.55rem .8rem}.workspace{display:grid;grid-template-columns:260px 1fr;min-height:calc(100vh - 72px)}aside{background:#0b2c50;padding:1.5rem;color:#d7e5f2}.new-post{width:100%;background:#fff;color:var(--navy);margin-bottom:1.5rem}nav{display:grid;gap:.35rem}nav a{padding:.8rem 1rem;border-radius:8px}nav a.active,nav a:hover{background:#ffffff14;color:white}.content{padding:clamp(1.5rem,4vw,4rem);max-width:1250px;width:100%}.content-head{display:flex;justify-content:space-between;gap:2rem;align-items:end}.content-head h1{font-size:2.2rem;margin:.35rem 0}.search{display:flex;gap:.5rem}.notice{background:var(--ice);border-left:4px solid var(--blue);padding:1rem 1.2rem;margin:2rem 0;border-radius:0 10px 10px 0}.post-list{background:white;border:1px solid var(--line);border-radius:14px;overflow:hidden}.post-list article{display:flex;justify-content:space-between;align-items:center;padding:1.2rem 1.4rem;border-bottom:1px solid var(--line)}.post-list article:last-child{border-bottom:0}.post-list h2{font-size:1.05rem;margin:.4rem 0}.post-list p{margin:0;color:var(--muted);font-size:.88rem}.board-tag{font-size:.78rem;color:var(--blue);font-weight:700}.arrow{font-size:2rem;color:#93a4b5}.empty{text-align:center;padding:5rem 1rem}.empty p{color:var(--muted)}@media(max-width:800px){.auth-shell{grid-template-columns:1fr}.brand-panel{padding:2rem;min-height:260px}.security-note{margin-top:1rem}.auth-card{padding:2rem}.workspace{grid-template-columns:1fr}aside{display:none}.content-head{align-items:stretch;flex-direction:column}.search{width:100%}.search input{flex:1}.topbar{padding:0 1rem}.user-chip span{display:none}.form-grid{grid-template-columns:1fr}.form-grid .full{grid-column:auto}}

/* Post editor and detail */
.logo,.new-post,.ghost-link,.post-row,.secondary-button{text-decoration:none}.new-post{display:block;text-align:center}.post-row{color:inherit}.form-page{min-height:calc(100vh - 72px);padding:40px 20px;background:#f5f7fb}.editor-card{max-width:900px;margin:0 auto;padding:36px;background:#fff;border:1px solid #e5e9f0;border-radius:18px;box-shadow:0 10px 30px rgba(22,34,51,.06)}.editor-card h1{margin:8px 0 28px}.editor-card label{display:block;margin:18px 0 8px;font-weight:700;color:#26364d}.editor-card input,.editor-card select,.editor-card textarea{box-sizing:border-box;width:100%;margin-top:8px;padding:13px 14px;border:1px solid #ced5df;border-radius:9px;font:inherit}.editor-card textarea{resize:vertical}.upload-help,.post-meta{color:#718096;font-size:14px}.form-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:28px}.form-actions form{margin:0}.primary-button,.secondary-button,.danger-button,.ghost-link{display:inline-block;padding:11px 18px;border:0;border-radius:8px;font-weight:700;cursor:pointer}.primary-button{color:#fff;background:#155bd7}.secondary-button,.ghost-link{color:#334155;background:#eef2f7}.danger-button{color:#fff;background:#c0392b}.form-error{margin:14px 0;padding:12px;color:#9b1c1c;background:#fff0f0;border-radius:8px}.post-content{min-height:180px;padding:28px 0;white-space:pre-wrap;line-height:1.75;border-top:1px solid #edf0f4;border-bottom:1px solid #edf0f4}.attachment-box{margin-top:25px;padding:20px;background:#f7f9fc;border-radius:12px}.attachment-box h2{font-size:16px;margin:0 0 12px}.attachment-box a{display:block;padding:9px 0;color:#155bd7;text-decoration:none}.attachment-box small{color:#7b8794}.post-list .post-row{display:flex;align-items:center;justify-content:space-between;padding:20px;border-bottom:1px solid #edf0f4}
.rich-editor{overflow:hidden;border:1px solid #bfc9d6;border-radius:9px;background:#fff}.editor-toolbar{display:flex;align-items:center;gap:4px;flex-wrap:wrap;padding:7px;background:#f2f5f8;border-bottom:1px solid #cbd3dc}.editor-toolbar button,.editor-toolbar select{width:auto;margin:0;padding:6px 9px;min-height:32px;border:1px solid #c4ccd5;border-radius:4px;background:#fff;color:#26364d;font-size:13px}.editor-toolbar button:hover{background:#e4edf7}.toolbar-divider{height:24px;border-left:1px solid #c5ccd4;margin:0 3px}.editor-surface{min-height:360px;padding:18px;outline:none;line-height:1.65}.editor-surface:empty:before{content:attr(data-placeholder);color:#9aa6b2}.post-content p{margin:.6em 0}.post-content blockquote{margin:1em 0;padding:.6em 1em;border-left:4px solid #9db7d1;background:#f5f8fb}.post-content a{color:#155bd7;text-decoration:underline}
.workspace{grid-template-columns:290px minmax(0,1fr)}.workspace aside{padding:14px 12px}.board-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:3px}.board-grid a{padding:6px 8px;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.board-grid .wide{grid-column:1/-1;text-align:center;font-weight:800}.content{padding:28px 36px;max-width:none}.content-head{align-items:center}.content-head h1{margin-bottom:2px}.list-count{margin:0;color:var(--muted);font-size:13px}.board-table-wrap{margin-top:18px;background:#fff;border-top:3px solid var(--blue);overflow-x:auto}.board-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:14px}.board-table th{padding:9px 8px;border-bottom:2px solid #9db1c5;color:#26364d}.board-table td{padding:8px;border-bottom:1px solid #d6dde5;text-align:center}.board-table .num{width:70px}.board-table .author{width:230px}.board-table .date{width:110px}.board-table .views{width:70px}.board-table .title{text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.board-table .title a{color:#1266bb}.board-table .author span{color:#61758a}.file-count{margin-left:7px;color:#d97706;font-size:11px}.empty-row{padding:50px!important;color:var(--muted)}.pagination{display:flex;justify-content:center;gap:4px;margin:22px 0}.pagination a{min-width:30px;padding:6px;text-align:center;border-radius:5px;color:var(--blue)}.pagination a.active{background:var(--blue);color:#fff}.list-footer{display:flex;justify-content:space-between;align-items:center;gap:15px}.board-search{display:flex;gap:6px}.board-search select,.board-search input{padding:8px;border:1px solid var(--line);border-radius:5px}.board-search input{width:260px}.board-search button{padding:8px 18px}@media(max-width:1000px){.workspace{grid-template-columns:290px 1fr}.board-grid a{font-size:12px}.content{padding:22px 18px}.board-table .author{width:170px}}@media(max-width:800px){.workspace{grid-template-columns:1fr}.board-table .author{width:130px}.board-table .date{width:100px}.board-search input{width:150px}}

/* Keep navigation below the header, with its own scroll area. */
.topbar{position:sticky;top:0;z-index:20}
.workspace{align-items:start}
.workspace aside{position:sticky;top:72px;height:calc(100vh - 72px);height:calc(100dvh - 72px);overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.content{min-width:0}
.board-table{font-size:13px}
.board-table td{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:800px){.board-table{min-width:650px}}

.pagination .disabled{min-width:30px;padding:6px;text-align:center;color:#aab5c0;cursor:default}
.list-footer{width:100%;align-items:center;flex-wrap:wrap}
.list-footer>.primary-button{margin-left:auto;white-space:nowrap}
.board-search{margin:0;align-items:center}
.workspace .editor-card{max-width:none;width:100%;margin:0;box-shadow:none}
.post-content{overflow-wrap:anywhere}.post-content img{max-width:100%;height:auto}

/* List controls share an exact 42px top and bottom edge. */
.list-footer{display:flex;flex-wrap:nowrap;align-items:center;gap:16px}
.list-footer .board-search{display:flex;align-items:center;gap:6px;min-width:0;flex:0 1 auto}
.list-footer .board-search select,.list-footer .board-search input,.list-footer .board-search button,.list-footer>.primary-button{height:42px;box-sizing:border-box;margin-top:0;margin-bottom:0;font-family:inherit;font-size:14px;line-height:20px;border-radius:6px}
.list-footer .board-search select,.list-footer .board-search input{padding:0 10px}
.list-footer .board-search input{min-width:60px;flex:0 1 260px;width:260px}
.list-footer .board-search button,.list-footer>.primary-button{display:inline-flex;align-items:center;justify-content:center;padding:0 18px;white-space:nowrap;flex-shrink:0}
.list-footer>.primary-button{margin-left:auto}
.board-table .manage{width:64px}.manage form{margin:0}
.row-delete{padding:4px 8px;border:1px solid #edc4c4;border-radius:4px;background:#fff;color:#b42318;font-size:12px;line-height:18px}

/* List height follows the actual number of posts. */
.board-table-wrap{min-height:0}
.board-table thead tr{height:40px}
.board-table tbody tr{height:45px}
.board-table th,.board-table td{line-height:20px}
.pagination{height:36px;align-items:center;flex-shrink:0;margin:22px 0}
.pagination a,.pagination .disabled{display:inline-flex;align-items:center;justify-content:center;height:36px}
html{scrollbar-gutter:stable}

/* Search, pagination and compose share one horizontal toolbar. */
.list-footer{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:12px;margin-top:22px}
.list-footer .board-search{grid-column:1;justify-self:start;width:100%}
.list-footer .pagination{grid-column:2;margin:0;height:42px;gap:2px}
.list-footer>.primary-button{grid-column:3;justify-self:end;margin:0}
.list-footer .board-search input{width:100%;flex:1 1 100px;max-width:260px;min-width:40px}
.list-footer .board-search select{max-width:105px;min-width:75px}
@media(max-width:1100px){.list-footer{gap:6px}.list-footer .pagination a,.list-footer .pagination .disabled{min-width:22px;padding:3px}.list-footer .board-search button,.list-footer>.primary-button{padding:0 10px}}
@media(max-width:650px){.list-footer{grid-template-columns:minmax(220px,1fr) auto auto;overflow-x:auto;padding-bottom:4px}}

/* Login hero artwork. The overlay keeps the portal title readable. */
.brand-panel{
  background:
    linear-gradient(90deg,rgba(5,31,60,.90) 0%,rgba(7,42,78,.78) 52%,rgba(7,42,78,.48) 100%),
    url("login-portal-bg-v1.png") center/cover no-repeat;
}
