@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;600;700;800&display=swap');
:root{font-family:'Noto Sans KR',Arial,sans-serif;color:#17283e;background:#fff;font-synthesis:none;scroll-behavior:smooth}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}.wrap{width:min(1180px,calc(100% - 64px));margin:auto}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip{position:absolute;z-index:100;top:-50px;left:20px;background:#fff;padding:10px}.skip:focus{top:10px}.site-header{height:92px;background:#fff;position:relative;z-index:10;border-bottom:1px solid #e8edf2}.header-inner{width:min(1360px,calc(100% - 64px));height:100%;margin:auto;display:flex;align-items:center;gap:40px}.brand{display:flex;align-items:center;gap:11px;flex:none}.brand-mark{position:relative;width:28px;height:42px;border-left:7px solid #13934e;transform:rotate(7deg)}.brand-mark:before{content:'';position:absolute;left:-15px;top:11px;width:25px;height:7px;background:#d84348;transform:rotate(-13deg)}.brand-mark span{position:absolute;left:-8px;top:-1px;width:2px;height:42px;background:#f3c750;transform:rotate(10deg)}.brand-copy{display:flex;flex-direction:column;line-height:1.1;letter-spacing:-.07em;color:#101820}.brand-copy small{font-size:10px;font-weight:700;letter-spacing:.2em;margin-bottom:4px}.brand-copy strong{font-size:24px;font-weight:800}.main-nav{display:flex;align-items:center;justify-content:center;gap:clamp(24px,4vw,70px);flex:1}.main-nav a{font-size:17px;font-weight:700;white-space:nowrap}.main-nav a:hover,.main-nav a:focus-visible{color:#2c5c94}.main-nav a span{font-size:12px}.header-actions{display:flex;align-items:center;gap:10px;white-space:nowrap}.header-actions span{font-size:12px;color:#69798b;max-width:140px;overflow:hidden;text-overflow:ellipsis}.login-button{border:1px solid #284b7d;background:#284b7d;color:white;border-radius:4px;padding:10px 14px;font-size:12px;font-weight:700}.login-button:hover{background:#17345c}.menu-button{display:none;background:none;border:0;padding:6px}.menu-button span{display:block;width:24px;height:2px;background:#17345c;margin:5px}.hero{height:min(660px,calc(100vh - 92px));min-height:520px;position:relative;overflow:hidden;color:#fff;background:linear-gradient(106deg,#0e294a 0%,#21456c 59%,#6381a1 100%)}.hero:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(7,26,50,.26),transparent 58%);pointer-events:none}.hero-art{position:absolute;inset:0;overflow:hidden;opacity:.55}.hero-art:before{content:'';position:absolute;width:57%;height:90%;right:-4%;bottom:-13%;border:22px solid rgba(255,255,255,.13);border-bottom:0;border-radius:48% 48% 0 0;transform:skewX(-9deg)}.hero-art:after{content:'';position:absolute;width:1200px;height:450px;right:-340px;bottom:-300px;border:42px solid rgba(230,240,250,.15);border-radius:50%}.art-window{position:absolute;bottom:-60px;width:190px;height:410px;border:16px solid rgba(255,255,255,.17);border-radius:110px 110px 0 0;background:linear-gradient(90deg,transparent 46%,rgba(255,255,255,.12) 46%,rgba(255,255,255,.12) 54%,transparent 54%)}.art-window-one{right:27%;transform:skewX(-9deg)}.art-window-two{right:8%;height:500px;transform:skewX(-9deg)}.art-cross{position:absolute;right:33%;top:17%;width:12px;height:85px;background:rgba(255,255,255,.4);transform:rotate(-9deg)}.art-cross:after{content:'';position:absolute;width:62px;height:11px;top:21px;left:-25px;background:inherit}.hero-content{position:relative;z-index:1;height:100%;display:flex;flex-direction:column;justify-content:center;padding-bottom:35px}.hero-line{font-size:13px;letter-spacing:.25em;font-weight:600;margin:0 0 25px;color:#dce8f3}.hero h1{font-size:clamp(49px,5.3vw,76px);letter-spacing:-.07em;line-height:1.25;font-weight:700;margin:0}.hero h1 em{font-style:normal;font-weight:800}.hero-description{font-size:17px;line-height:1.9;color:#e7eff8;margin:26px 0 36px}.hero-link{display:inline-flex;align-items:center;justify-content:space-between;width:190px;border-bottom:1px solid rgba(255,255,255,.75);padding-bottom:12px;font-size:14px;font-weight:700}.hero-link span{font-size:22px;font-weight:400}.hero-foot{position:absolute;z-index:1;bottom:32px;left:0;right:0;display:flex;justify-content:space-between;color:#e5edf5;font-size:11px;letter-spacing:.15em}.hero-foot span:first-child{letter-spacing:0}.department-section{padding:120px 0 130px}.section-heading{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:48px}.section-en{font-size:12px;color:#2c5c94;letter-spacing:.24em;font-weight:700;margin:0 0 15px}.section-heading h2{font-size:42px;letter-spacing:-.065em;line-height:1.25;margin:0 0 14px;font-weight:800}.section-heading p:not(.section-en){margin:0;color:#6e7d8d;font-size:15px}.section-number{color:#a3afbd;font-size:12px;letter-spacing:.15em}.department-grid{display:grid;grid-template-columns:repeat(4,1fr);border-top:2px solid #163b68;border-left:1px solid #dce3eb}.department-item{min-height:160px;border-right:1px solid #dce3eb;border-bottom:1px solid #dce3eb;padding:26px 26px 23px;text-align:left;background:#fff;display:flex;flex-direction:column;justify-content:space-between;transition:background .2s,color .2s}.department-item:hover,.department-item.active{background:#173d6c;color:white}.department-item small{font-size:12px;letter-spacing:.14em;color:#8c9aaa}.department-item.active small,.department-item:hover small{color:#c6d7e9}.department-item strong{font-size:24px;font-weight:700}.department-item span{align-self:flex-end;font-size:24px;font-weight:300}.board-section{background:#f7f9fb;padding:112px 0 130px}.board-heading{margin-bottom:48px}.board-controls{border-top:2px solid #173d6c;display:flex;justify-content:space-between;align-items:center;gap:18px}.tabs{display:flex;gap:34px}.tab{border:0;background:none;padding:20px 0 17px;color:#798797;font-size:15px;font-weight:600;border-bottom:3px solid transparent}.tab.active{color:#173d6c;border-bottom-color:#173d6c}.board-tools{display:flex;align-items:center;gap:12px}.search-box{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #dce4eb;padding:8px 12px;width:234px;height:42px}.search-box svg{width:18px;fill:none;stroke:#8697a7;stroke-width:1.8}.search-box input{border:0;outline:0;width:100%;font-size:12px}.write-button{border:0;background:#173d6c;color:#fff;height:42px;padding:0 17px;font-size:13px;font-weight:700}.write-button span{font-size:17px;margin-left:8px}.board-table{background:#fff}.table-head,.post-row{display:grid;grid-template-columns:78px 90px minmax(0,1fr) 120px 120px;align-items:center;gap:18px}.table-head{background:#f0f4f8;color:#66778a;font-size:12px;font-weight:700;text-align:center;height:48px}.table-head span:nth-child(3){text-align:left}.post-row{width:100%;background:#fff;border:0;border-bottom:1px solid #e9edf1;text-align:center;padding:0 18px;min-height:76px;color:#6e7d8d;font-size:13px}.post-row:hover{background:#fbfcfe}.post-row .title{text-align:left;color:#1b2d42;font-size:15px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.post-row .kind{font-size:11px;padding:5px 9px;border:1px solid #ced8e2;color:#365e88;justify-self:center}.post-row .kind.bulletin{color:#547348;border-color:#d0ddc7}.board-status{text-align:center;color:#8a98a6;font-size:14px;padding:30px}.empty-state{text-align:center;color:#8897a7;padding:56px 15px;border-bottom:1px solid #e9edf1}.site-footer{background:#172b43;color:#d4dce5;padding:67px 0 24px}.footer-inner{display:flex;justify-content:space-between;gap:30px}.footer-brand{font-size:23px;color:#fff;font-weight:800;letter-spacing:-.05em}.footer-brand span{font-weight:400;color:#adbdce}.site-footer p{color:#aab8c8;line-height:1.9;font-size:13px}.footer-inner>div:last-child{text-align:right;font-size:13px}.footer-inner a{color:#fff}.footer-bottom{border-top:1px solid #3a4b5e;padding-top:20px;margin-top:55px;font-size:11px;color:#8ea0b3}dialog{border:0;border-radius:6px;box-shadow:0 30px 100px #0c233747;padding:34px;max-height:min(85vh,850px);overflow:auto;color:#17283e}dialog::backdrop{background:rgba(12,29,48,.62)}.post-dialog,.editor-dialog{width:min(680px,calc(100% - 28px))}.dialog-top{display:flex;justify-content:space-between;align-items:center;color:#2c5c94;font-size:13px;font-weight:700}.icon-button{border:0;background:none;color:#66788d;font-size:28px;line-height:1}.post-dialog h2{font-size:28px;line-height:1.4;margin:20px 0 8px}.dialog-meta{font-size:12px;color:#8290a0;border-bottom:1px solid #dfe6ed;padding-bottom:20px}.dialog-body{white-space:pre-wrap;line-height:1.9;font-size:15px;min-height:140px;padding:22px 0}.dialog-actions{display:flex;gap:8px;justify-content:flex-end;border-top:1px solid #e3e9ef;padding-top:16px}.dialog-actions button,.cancel-button{border:1px solid #d8e1e9;background:white;color:#35516e;padding:10px 20px;font-size:13px}.editor-dialog form{display:flex;flex-direction:column;gap:19px}.editor-dialog label{font-size:13px;font-weight:700;display:flex;flex-direction:column;gap:8px}.editor-dialog input,.editor-dialog select,.editor-dialog textarea{border:1px solid #cfdae4;border-radius:2px;padding:12px;font-size:14px;color:#17283e;background:#fff}.editor-dialog textarea{resize:vertical;min-height:180px;line-height:1.6}.form-error{color:#b52c39;font-size:12px;margin:0;min-height:18px}.form-actions{display:flex;justify-content:flex-end;gap:8px}.submit-button{background:#173d6c;color:#fff;border:0;padding:10px 24px;font-size:13px;font-weight:700}
@media(max-width:1000px){.header-inner{gap:20px}.main-nav{gap:22px}.main-nav a{font-size:14px}.brand-copy strong{font-size:20px}.header-actions span{display:none}.table-head,.post-row{grid-template-columns:54px 70px minmax(0,1fr) 95px 90px;gap:9px}}
@media(max-width:720px){.wrap,.header-inner{width:calc(100% - 36px)}.site-header{height:72px}.brand-copy strong{font-size:19px}.brand-copy small{font-size:8px}.brand-mark{transform:scale(.8) rotate(7deg)}.header-inner{gap:10px}.header-actions{margin-left:auto}.login-button{font-size:11px;padding:8px}.menu-button{display:block}.main-nav{display:none;position:absolute;left:0;right:0;top:72px;background:#fff;padding:20px 18px;box-shadow:0 12px 18px #102c4b22;flex-direction:column;align-items:flex-start}.main-nav.open{display:flex}.hero{height:550px;min-height:0}.hero-content{padding-bottom:26px}.hero-line{font-size:10px;letter-spacing:.17em}.hero h1{font-size:47px}.hero-description{font-size:14px}.hero-art{opacity:.35}.art-window-one{right:37%}.art-window-two{right:-6%}.hero-foot{bottom:22px}.hero-foot span:last-child{font-size:9px}.department-section{padding:74px 0 85px}.section-heading{margin-bottom:30px}.section-heading h2{font-size:31px}.section-heading p:not(.section-en){font-size:13px;line-height:1.6}.section-number{display:none}.department-grid{grid-template-columns:repeat(2,1fr)}.department-item{min-height:120px;padding:17px}.department-item strong{font-size:19px}.department-item small{font-size:10px}.board-section{padding:75px 0 85px}.board-controls{display:block}.tabs{gap:23px}.tab{font-size:13px}.board-tools{padding:13px 0;justify-content:space-between}.search-box{flex:1}.table-head{display:none}.post-row{min-height:80px;grid-template-columns:58px minmax(0,1fr) 75px;gap:8px;padding:12px}.post-row .number,.post-row .author{display:none}.post-row .title{font-size:14px}.post-row .date{font-size:11px}.footer-inner{display:block}.footer-inner>div:last-child{text-align:left;margin-top:35px}.footer-bottom{margin-top:38px}.desktop-break{display:none}dialog{padding:22px}.post-dialog h2{font-size:23px}}

.brand-logo{display:block;width:205px;height:86px;object-fit:contain}
.hero-content{align-items:center;text-align:center;padding-bottom:0}
.hero h1{font-size:clamp(42px,5.3vw,76px);font-weight:700}
.hero-verse{font-size:20px;font-weight:500;letter-spacing:.02em;margin:24px 0 0;color:#fff}
@media(max-width:720px){.brand-logo{width:150px;height:66px}.hero-content{padding-bottom:0}.hero h1{font-size:clamp(31px,8.8vw,43px);line-height:1.35}.hero-verse{font-size:16px;margin-top:18px}}

.hero{background:#203b57 url('./banner.jpg') center center/cover no-repeat}
.hero:after{background:rgba(8,22,39,.42)}
.users-dialog{width:min(740px,calc(100% - 28px))}.users-dialog h2{font-size:22px;margin:0}.users-dialog #users-status{color:#66788d;font-size:13px}.user-card{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;border-top:1px solid #dfe6ed;padding:20px 0}.user-card strong{grid-column:1/-1;overflow-wrap:anywhere}.user-card label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:700}.user-card input,.user-card select{border:1px solid #cfdae4;padding:8px;min-width:0}.user-card fieldset{grid-column:1/-1;border:1px solid #dfe6ed;display:flex;flex-wrap:wrap;gap:8px 16px}.user-card legend{font-size:12px;font-weight:700}.user-card fieldset label{flex-direction:row;align-items:center;font-weight:400}.user-card button{background:#173d6c;color:#fff;border:0;padding:9px 20px;justify-self:start}.user-card span[role=status]{align-self:center;font-size:12px;color:#365e88}@media(max-width:720px){.user-card{grid-template-columns:1fr}.user-card strong,.user-card fieldset{grid-column:1}}

main:not([data-page]) .board-controls{display:none}
[hidden]{display:none!important}
.more-link{font-size:14px;font-weight:700;color:#173d6c;border-bottom:1px solid #173d6c;padding-bottom:7px;white-space:nowrap}
.department-item{justify-content:space-between}
.department-item strong{margin-top:auto}
.dialog-body p{white-space:pre-wrap;margin:0 0 20px}
.dialog-body img{display:block;width:100%;height:auto;margin:18px auto;border:1px solid #e3e9ef}
.editor-dialog label small{font-size:12px;color:#66788d;font-weight:400}
#image-preview{font-size:12px;color:#365e88}
.users-page{min-height:65vh;padding-top:76px;padding-bottom:100px}
.page-heading{border-bottom:2px solid #173d6c;padding-bottom:28px;margin-bottom:28px}
.page-heading>a{font-size:13px;color:#365e88}
.page-heading h1{font-size:40px;margin:18px 0 8px}
.page-heading p,#users-status{color:#66788d;font-size:14px}
.users-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.users-list .user-card{border:1px solid #dfe6ed;padding:24px;border-radius:4px;background:#fff}
main[data-page="department"] .department-section{padding-top:76px;padding-bottom:76px}
main[data-page="department"] .board-section{padding-top:76px}
@media(max-width:800px){.users-list{grid-template-columns:1fr}.page-heading h1{font-size:32px}}

/* 교회학교 펼침 메뉴 */
.header-inner{gap:24px}
.main-nav{gap:clamp(16px,2.3vw,34px)}
.main-nav a,.school-menu-trigger{font-size:15px}
.school-menu-trigger{position:relative;font-weight:700;color:#17283e;background:none;border:0;padding:9px 0;white-space:nowrap}
.school-menu-trigger:hover,.school-menu-trigger.active,.school-menu-trigger:focus-visible{color:#2c5c94}
.school-menu-trigger.active:after{content:"";position:absolute;bottom:-27px;left:0;height:4px;width:100%;background:#284b7d}
.school-menu{position:absolute;left:0;right:0;top:100%;background:#fff;border-top:1px solid #edf0f3;box-shadow:0 18px 34px #0e27451c;z-index:11}
.school-menu-inner{width:min(1180px,calc(100% - 64px));min-height:430px;margin:auto;display:flex;flex-direction:column;align-items:flex-end;gap:8px;padding:50px 0 58px}
.school-menu-intro{text-align:right}
.school-menu-intro span{font-size:20px;font-weight:800;color:#173d6c}
.school-menu-intro p{display:none}
.school-menu-list{display:flex;flex-direction:column;align-items:flex-end;gap:7px}
.school-menu-list a{display:block;width:max-content;padding:5px 0;font-size:19px;color:#18283b;transition:color .15s,transform .15s}
.school-menu-list a:hover,.school-menu-list a:focus-visible{color:#2c5c94;transform:translateX(-6px);text-decoration:underline;text-underline-offset:6px}

/* 서류철 모양의 부서 선택 */
.department-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:30px 18px;border:0;padding-top:16px}
.department-item{position:relative;min-height:112px;padding:27px 22px 20px;border:1px solid #d8d9d4;border-bottom:3px solid #b7c1cd;border-radius:0 9px 3px 3px;background:#f3f2ed;color:#21354a;box-shadow:0 7px 14px #102b4510;justify-content:flex-end;transition:transform .18s,background .18s,color .18s,box-shadow .18s}
.department-item:before{content:"";position:absolute;top:-16px;left:-1px;width:44%;height:16px;border:1px solid #d8d9d4;border-bottom:0;border-radius:8px 9px 0 0;background:#f3f2ed;transition:background .18s}
.department-item:after{content:"";position:absolute;left:0;right:0;bottom:5px;border-bottom:1px solid #d6dce3}
.department-item strong{font-size:21px;line-height:1.2;margin:0;position:relative;z-index:1}
.department-item:hover,.department-item.active{background:#e5ebf2;color:#173d6c;transform:translateY(-4px);box-shadow:0 11px 20px #102b4520}
.department-item:hover:before,.department-item.active:before{background:#e5ebf2}
.department-item.active{border-bottom-color:#173d6c}
.department-item:focus-visible{outline:3px solid #284b7d;outline-offset:4px}
.footer-links{display:flex;flex-direction:column;align-items:flex-end;gap:10px;text-align:right;font-size:13px}
.footer-links p{margin:6px 0 0}

@media(max-width:1000px){.main-nav a,.school-menu-trigger{font-size:13px}.main-nav{gap:14px}.brand-logo{width:170px}.header-inner{gap:16px}}
@media(max-width:720px){.header-inner{gap:10px}.brand-logo{width:150px}.main-nav{display:none;gap:8px}.main-nav.open{display:flex}.main-nav a,.school-menu-trigger{font-size:15px}.school-menu-inner{width:calc(100% - 36px);min-height:0;display:block;padding:26px 0 32px}.school-menu-intro{display:none}.school-menu-list{display:grid;grid-template-columns:repeat(2,1fr);gap:8px 18px;justify-items:start}.school-menu-list a{font-size:17px;padding:10px}.department-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 12px}.department-item{min-height:96px;padding:24px 15px 16px}.department-item strong{font-size:18px}.footer-links{align-items:flex-start;text-align:left;margin-top:24px}}

/* 선택한 부서 탭이 아래 게시판과 이어지는 가로형 서류철 */
.department-section{padding-bottom:0}
main[data-page="department"] .department-section{padding-bottom:0}
.department-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:0;padding:0;border:0;position:relative;z-index:2}
.department-item{min-width:0;min-height:68px;padding:16px 13px;border:0;border-right:1px solid #ffffff29;border-bottom:1px solid #173d6c;border-radius:0;background:#173d6c;color:#fff;box-shadow:none;display:flex;align-items:center;justify-content:flex-start;transition:background .18s,color .18s}
.department-item:last-child{border-right:0}
.department-item:before,.department-item:after{display:none}
.department-item strong{font-size:16px;font-weight:700;line-height:1.25;margin:0;white-space:nowrap}
.department-item:hover{background:#244d7e;color:#fff;transform:none;box-shadow:none}
.department-item.active,.department-item.active:hover{background:#f7f9fb;color:#173d6c;border:1px solid #b9c8d5;border-bottom:0;transform:none;box-shadow:none}
.department-item.active:first-child{border-left:1px solid #b9c8d5}
.board-section{border-top:1px solid #b9c8d5;padding-top:70px}
main[data-page="department"] .board-section{padding-top:70px}

/* 펼침 목록을 헤더의 가운데에 배치 */
.school-menu-inner{align-items:center}
.school-menu-intro{text-align:center}
.school-menu-list{align-items:center}
.school-menu-list a:hover,.school-menu-list a:focus-visible{transform:translateY(-2px)}

@media(max-width:900px){.department-grid{overflow-x:auto;grid-template-columns:repeat(8,minmax(118px,1fr));scrollbar-width:thin}.department-item{min-height:62px}.department-item strong{font-size:15px}}
@media(max-width:720px){.department-section{padding-bottom:0}.department-grid{grid-template-columns:repeat(8,118px)}.department-item{min-height:58px;padding:12px}.department-item strong{font-size:14px}.board-section,main[data-page="department"] .board-section{padding-top:48px}.school-menu-list{align-items:start}}

body{overflow-x:clip}
.department-section.wrap{width:100%}
.department-section>.section-heading{width:min(1180px,calc(100% - 64px));margin-left:auto;margin-right:auto}
.department-grid{width:100%;margin-left:0}
@media(max-width:720px){.department-section>.section-heading{width:calc(100% - 36px)}}

@media(max-width:720px){
  .department-grid{grid-template-columns:repeat(4,minmax(0,1fr));overflow:visible}
  .department-item{min-width:0;min-height:56px;padding:10px 6px;justify-content:center;text-align:center}
  .department-item strong{font-size:13px}
}

@media(min-width:901px){
  .department-section.wrap{width:min(1180px,calc(100% - 64px))}
  .department-section>.section-heading{width:100%}
}
