*{box-sizing:border-box}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Noto Sans KR","Segoe UI",sans-serif;color:#202124;background:#f7f8fa}.wrap{max-width:1100px;margin:auto;padding:0 22px}.header{background:#fff;border-bottom:1px solid #e9eaee}.nav{height:68px;display:flex;align-items:center;gap:14px}.brand{font-size:23px;font-weight:800;color:#17181a;text-decoration:none}.tag{font-size:13px;color:#8a8f98}.theme-toggle{margin-left:auto;border:1px solid #dfe2e7;background:#fff;color:#30343a;border-radius:999px;padding:8px 13px;font-size:12px;font-weight:700;cursor:pointer}.hero{padding:70px 0 42px}.eyebrow{font-size:12px;font-weight:800;letter-spacing:.16em;color:#5965d8;margin:0 0 14px}.hero h1{font-size:42px;line-height:1.25;margin:0 0 16px;letter-spacing:-.04em}.hero h1 strong{font-weight:800}.hero p:not(.eyebrow){color:#69707c;line-height:1.7;margin:0}.toolbar{display:flex;gap:12px;align-items:center;margin-bottom:24px;flex-wrap:wrap}#search{width:320px;padding:13px 16px;border:1px solid #dfe2e7;border-radius:12px;background:#fff;font-size:14px;outline:none}.categories{display:flex;gap:7px;flex-wrap:wrap}.cat{border:1px solid #dfe2e7;background:#fff;border-radius:999px;padding:9px 14px;cursor:pointer;font-size:13px}.cat.active,.cat.active:hover{background:#fff;color:#202124;border-color:#dfe2e7}.dark .cat.active,.dark .cat.active:hover{background:#1c2027;color:#eef1f6;border-color:#353b46}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;padding-bottom:60px}.card{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:22px;cursor:pointer;transition:.15s}.card:hover{transform:translateY(-2px);box-shadow:0 8px 24px #0000000b}.card h2{font-size:18px;margin:0 0 8px}.card p{font-size:13px;color:#737983;margin:0;line-height:1.6}.badge{display:inline-block;font-size:11px;color:#5965d8;background:#eef0ff;padding:5px 8px;border-radius:6px;margin-bottom:15px}.editor{background:#fff;border:1px solid #e3e5e9;border-radius:18px;padding:28px;margin-bottom:60px}.editor h2{margin:0 0 5px;font-size:25px}.editor .desc{color:#777;font-size:13px;margin-bottom:24px}.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.field label{display:block;font-size:13px;font-weight:700;margin-bottom:7px}.field input,.field textarea{width:100%;padding:12px;font-size:16px;border:1px solid #dfe2e7;border-radius:9px;font:inherit}.field textarea{min-height:100px;resize:vertical}.full{grid-column:1/-1}.actions{display:flex;gap:9px;margin-top:24px}.btn{border:0;border-radius:9px;padding:12px 18px;font-weight:700;cursor:pointer}.primary{background:#202124;color:white}.secondary{background:#eef0f2;color:#30343a}.hidden{display:none}footer{background:#fff;border-top:1px solid #e9eaee;color:#9297a0;font-size:12px;padding:25px 0}.footer-inner{display:flex;align-items:center;justify-content:space-between;gap:20px}.legal-links{display:flex;gap:14px}.legal-links button{border:0;background:none;padding:0;color:#737983;font:inherit;cursor:pointer;text-decoration:underline;text-underline-offset:3px}.legal-modal{position:fixed;inset:0;z-index:1000}.legal-backdrop{position:absolute;inset:0;background:#0008}.legal-panel{position:relative;width:min(720px,calc(100% - 32px));max-height:80vh;overflow:auto;margin:10vh auto;background:#fff;border-radius:18px;padding:32px;color:#202124;box-shadow:0 20px 60px #0005}.legal-panel h2{margin:0 0 22px;font-size:24px}.legal-panel h3{font-size:16px;margin:22px 0 8px}.legal-panel p,.legal-panel li{font-size:13px;line-height:1.8;color:#555}.legal-date{font-size:12px!important;color:#8a8f98!important}.legal-contact{display:inline-block;margin-top:8px;font-weight:700;color:#5965d8;text-decoration:none}.modal-open{overflow:hidden}.legal-panel ul{padding-left:20px}.legal-close{position:absolute;right:18px;top:14px;border:0;background:none;font-size:28px;cursor:pointer;color:#666}@media(max-width:700px) and (hover:none) and (pointer:coarse){.wrap{padding:0 16px}.nav{height:60px}.brand{font-size:20px}.tag{font-size:12px}.theme-toggle{padding:7px 10px}.hero{padding:45px 0 30px}.hero h1{font-size:32px}.hero p:not(.eyebrow){font-size:14px}.toolbar{gap:9px}.cards{grid-template-columns:1fr;gap:11px}.card{padding:18px}.formgrid{grid-template-columns:1fr;gap:13px}.full{grid-column:auto}#search{width:100%}.editor{padding:20px 16px;border-radius:14px}.actions{flex-direction:column}.btn{width:100%;min-height:46px}.footer-inner{align-items:flex-start;flex-direction:column}.legal-links{flex-wrap:wrap;gap:10px 14px}}body.dark{color:#eef1f6;background:#111318}.dark .header,.dark .editor,.dark footer{background:#181b21;border-color:#2b3039}.dark .brand{color:#f4f6fa}.dark .tag,.dark .hero p:not(.eyebrow),.dark .card p,.dark .editor .desc,.dark footer{color:#aeb5c0}.dark .hero h1{color:#f4f6fa}.dark #search,.dark .cat,.dark .card,.dark .field input,.dark .field textarea,.dark .theme-toggle{background:#1c2027;color:#eef1f6;border-color:#353b46}.dark #search::placeholder,.dark .field input::placeholder,.dark .field textarea::placeholder{color:#7f8794}.dark .primary{background:#f1f3f7;color:#15171b;border-color:#f1f3f7}.dark .card{border-color:#303640}.dark .badge{background:#252946;color:#9ca8ff}.dark .secondary{background:#2a2f38;color:#eef1f6}.dark .legal-panel{background:#181b21;color:#eef1f6}.dark .legal-panel p,.dark .legal-panel li{color:#b9c0cb}.dark .legal-links button{color:#aeb5c0}.dark .legal-contact{color:#9ca8ff}.dark .legal-close{color:#d5d9e0}@media(min-width:701px){html{min-width:1100px}body{min-width:1100px;overflow-x:auto}.wrap{min-width:0;max-width:1100px;margin-left:auto;margin-right:auto}}
/* 광고를 나중에 실제 광고 코드로 교체할 수 있는 공용 영역입니다. */
.ad-slot{width:100%;min-height:90px;margin:0 0 28px;border:1px solid #e5e7eb;border-radius:12px;background:#fff;display:flex;align-items:center;justify-content:center;color:#a0a5ad;font-size:11px;letter-spacing:.08em}.ad-top{max-width:100%;}.dark .ad-slot{background:#181b21;border-color:#303640;color:#7f8794}@media(max-width:700px) and (hover:none) and (pointer:coarse){.ad-slot{min-height:70px;margin-bottom:20px;border-radius:10px}}
/* 작성 화면에서 문서 목록으로 돌아가기 버튼을 위한 스타일입니다. */
.editor-back{margin-bottom:18px}
/* 필수 입력 항목을 시각적으로 표시합니다. */
.required-mark{color:#d64545;margin-left:3px}
/* 입력 오류 메시지를 강조합니다. */
.form-error{display:none;margin-top:10px;color:#c0392b;font-size:13px;font-weight:700}
.form-error.show{display:block}
.dark .form-error{color:#ff8f8f}

/* 전체 UI의 키보드 접근성과 터치 조작을 보강합니다. */
button:focus-visible,input:focus-visible,textarea:focus-visible,a:focus-visible{outline:3px solid #5965d8;outline-offset:2px}
.empty{grid-column:1/-1;text-align:center;padding:55px 20px;border:1px dashed #d9dde4;border-radius:16px;background:#fff;color:#737983}
.empty strong{display:block;color:#30343a;font-size:16px;margin-bottom:7px}
.empty p{margin:0 0 18px;font-size:13px}
.dark .empty{background:#181b21;border-color:#353b46;color:#aeb5c0}
.dark .empty strong{color:#eef1f6}
@media(max-width:700px) and (hover:none) and (pointer:coarse){
  .cat,.btn,.theme-toggle,.legal-links button{min-height:44px}
  .categories{gap:7px}
  .legal-panel{padding:24px 20px}
}

/* 작성 화면 버튼을 화면 크기에 맞게 배치합니다. */
.actions{display:flex;flex-wrap:wrap;gap:10px}
@media(max-width:700px) and (hover:none) and (pointer:coarse){
  .actions .btn{flex:1 1 100%}
  .cat,.btn,.theme-toggle,.legal-links button{min-height:44px}
}
