/* ============================================================
   AiRMONO — 흑백 미니멀 반응형 레이아웃 (jusomoa.aply.biz 와 같은 디자인 언어)
   · 순백 바탕 + 검정 글자, 색은 흑백과 회색만
   · 모든 모서리 직각, 그림자 없음, 면은 1px 헤어라인으로 나눈다
   · 버튼은 흰 바탕 + 1px 검정 테두리, 누르면 검정으로 반전
   ============================================================ */
:root {
  --am-ink: #000; --am-text: #1d1d1d; --am-muted: #6e6e6e;
  --am-line: #d2d2d2; --am-line-soft: #e1e1e1; --am-band: #f2f2f2;
  --am-accent-bg: #e8e4df; --am-accent-line: #d8d2cb; --am-accent-hover: #ddd7d0;
  --am-font: "Pretendard", "Noto Sans KR", "Montserrat", -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif;
  --am-mont: "Montserrat", "Noto Sans KR", sans-serif;
}
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--am-text); font-family: var(--am-font); font-size: 15px; line-height: 1.65; letter-spacing: -0.005em; word-break: keep-all; }
.am, .am * { box-sizing: border-box; }
.am a { color: #000; text-decoration: none; }
.am a:hover { color: var(--am-muted); text-decoration: underline; text-underline-offset: 3px; }
.am-in { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .am-in { padding: 0 32px; } }
.am-blind { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.am-skip { position: absolute; left: -9999px; top: 0; }
.am-skip:focus { left: 16px; top: 8px; z-index: 100; background: #000; color: #fff !important; padding: 6px 12px; }

/* ── 버튼 ── */
.am-btn, .am .btn, .am .btn_insert, .am button.btn, .am input[type=submit], .am input[type=button], .am .am-main button[type=submit] {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; font-size: .92rem; letter-spacing: .01em; line-height: 1.2;
  padding: .72rem 1.5rem; border: 1px solid #000; border-radius: 0; background: #fff; color: #000 !important;
  cursor: pointer; text-decoration: none !important; white-space: nowrap; box-shadow: none; text-shadow: none; height: auto;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.am-btn:hover, .am .btn:hover, .am .btn_insert:hover, .am input[type=submit]:hover, .am input[type=button]:hover, .am .am-main button[type=submit]:hover { background: #000; color: #fff !important; border-color: #000; }
.am-btn.am-sm { padding: .5rem 1rem; font-size: .85rem; }
.am .btn_insert, .am .am-primary { background: var(--am-accent-bg); border-color: var(--am-accent-line); color: var(--am-text) !important; }
.am .btn_insert:hover, .am .am-primary:hover { background: var(--am-accent-hover); border-color: #c9c2ba; color: var(--am-text) !important; }

/* ── 상단 바 ── */
.am-top { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border-bottom: 1px solid var(--am-line); }
.am-top .am-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.am-brand { display: flex; align-items: baseline; gap: 10px; flex: none; }
.am-brand:hover { text-decoration: none !important; }
.am-wordmark { font-family: var(--am-mont); text-transform: uppercase; letter-spacing: .18em; font-weight: 700; color: #000; font-size: 15px; }
.am-ko { font-size: 13px; color: var(--am-muted); }
.am-nav { display: none; }
.am-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px 22px; flex-wrap: wrap; }
.am-nav > ul > li { position: relative; }
.am-nav > ul > li > a { display: block; padding: 20px 0; font-size: 14px; color: var(--am-text); white-space: nowrap; }
.am-nav > ul > li.am-on > a { color: #000; box-shadow: inset 0 -2px 0 #000; }
.am-nav > ul > li > a:hover { text-decoration: none; color: #000; box-shadow: inset 0 -2px 0 #000; }
.am-drop { display: none; position: absolute; top: 100%; left: -20px; z-index: 60; min-width: 220px; background: #fff; border: 1px solid #000; padding: 10px 0; }
.am-nav li:hover > .am-drop, .am-nav li:focus-within > .am-drop { display: block; }
.am-drop ul { list-style: none; margin: 0; padding: 0; }
.am-drop li a { display: block; padding: 7px 20px; font-size: 14px; color: var(--am-text); white-space: nowrap; }
.am-drop li a:hover { background: #000; color: #fff; text-decoration: none; }
.am-drop li.am-on > a { font-weight: 500; color: #000; }
.am-drop .am-drop3 a { padding-left: 32px; font-size: 13px; color: var(--am-muted); }
@media (min-width: 1100px) { .am-nav { display: block; } }
.am-actions { margin-left: auto; display: flex; align-items: center; gap: 16px; font-size: 14px; }
.am-actions .am-link { white-space: nowrap; color: var(--am-text); }
/* 좁은 화면: 상단 바에는 '로그인'만 남기고 나머지 회원 메뉴는 메뉴 패널(.am-account)에서 제공 */
@media (max-width: 560px) { .am-actions .am-link:not(.am-login), .am-actions .am-btn { display: none; } .am-actions { gap: 12px; } }
@media (max-width: 400px) { .am-ko { display: none; } }
.am-menu-btn { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; padding: 0 9px; border: 1px solid var(--am-line); background: #fff; cursor: pointer; }
.am-menu-btn span { display: block; height: 1px; background: #000; transition: transform .18s ease, opacity .18s ease; }
.am-menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.am-menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.am-menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (min-width: 1100px) { .am-menu-btn { display: none; } }

/* ── 모바일 메뉴 ── */
.am-drawer { position: sticky; top: 64px; z-index: 45; max-height: calc(100vh - 64px); overflow-y: auto; background: #fff; border-bottom: 1px solid #000; padding: 16px 16px 28px; }
.am-drawer[hidden] { display: none; }
.am-account { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 0 0 16px; padding: 0 0 16px; border-bottom: 1px solid var(--am-line-soft); }
.am-account-name { display: flex; flex-direction: column; font-size: 16px; font-weight: 500; color: #000; line-height: 1.35; }
.am-account-name small { font-size: 12px; font-weight: 400; color: var(--am-muted); }
.am-account-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.am-account-guest { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
.am-account-guest .am-btn { width: 100%; }
.am-search { display: flex; gap: 8px; margin: 0 0 16px; }
.am-search input[type=text] { flex: 1; min-width: 0; }
.am-drawer-menu, .am-drawer-menu ul { list-style: none; margin: 0; padding: 0; }
.am-drawer-menu { border-top: 1px solid #000; }
.am-drawer-menu > li { border-bottom: 1px solid var(--am-line); padding: 12px 0; }
.am-drawer-menu .am-d1 { display: block; font-family: var(--am-mont); text-transform: uppercase; letter-spacing: .12em; font-weight: 600; font-size: 13px; padding: 4px 0; }
.am-drawer-menu ul a { display: block; padding: 6px 0 6px 12px; font-size: 15px; color: var(--am-text); }
.am-drawer-menu ul ul a { padding-left: 28px; font-size: 14px; color: var(--am-muted); }
.am-drawer-menu li.am-on > a { font-weight: 500; color: #000; }
@media (min-width: 1100px) { .am-drawer { display: none !important; } }

/* ── 페이지 머리 ── */
.am-head { padding: 48px 0 0; }
@media (min-width: 900px) { .am-head { padding: 72px 0 0; } }
.am-eyebrow { display: block; font-family: var(--am-mont); text-transform: uppercase; letter-spacing: .12em; font-weight: 600; font-size: 12px; color: var(--am-muted); margin-bottom: 10px; }
.am-head h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 400; color: #000; letter-spacing: -0.025em; line-height: 1.3; margin: 0 0 24px; }
.am-subnav { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.am-subnav a { display: block; padding: 8px 14px; border: 1px solid var(--am-line); font-size: 14px; color: #000; transition: background-color .18s ease, color .18s ease, border-color .18s ease; }
.am-subnav a:hover { background: #000; border-color: #000; color: #fff; text-decoration: none; }
.am-subnav li.am-on a { background: #000; border-color: #000; color: #fff; }

/* ── 본문 ── */
.am-main { padding: 32px 0 80px; min-height: 40vh; }
@media (min-width: 900px) { .am-main { padding: 40px 0 104px; } }
.am-main.am-main-index { padding-top: 40px; }
.am-main .am-in > *:first-child { margin-top: 0; }
.am-main::after { content: ""; display: block; clear: both; }
.am-main img, .am-main video, .am-main iframe { max-width: 100%; }
.am-main img { height: auto; }

/* 공통 입력 요소 */
.am-main input[type=text], .am-main input[type=password], .am-main input[type=email], .am-main input[type=url], .am-main input[type=tel], .am-main input[type=number], .am-main input[type=search], .am-main textarea, .am-main select, .am-search input[type=text] {
  font: inherit; font-size: 15px; color: var(--am-text); background: #fff; padding: .6rem .8rem; border: 1px solid var(--am-line); border-radius: 0; box-shadow: none; height: auto; max-width: 100%;
}
.am-main input[type=text]:focus, .am-main input[type=password]:focus, .am-main input[type=email]:focus, .am-main input[type=url]:focus, .am-main input[type=tel]:focus, .am-main textarea:focus, .am-main select:focus, .am-search input[type=text]:focus { outline: 0; border-color: #000; color: #000; box-shadow: none; }
.am-main input::placeholder, .am-main textarea::placeholder, .am-search input::placeholder { color: #b2b2b2; }
.am-main input[type=checkbox], .am-main input[type=radio] { accent-color: #000; }
.am-main select { -webkit-appearance: none; appearance: none; padding-right: 2rem;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23000' stroke-width='1.5' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat; background-position: right .6rem center; background-size: 12px; }

/* XE 메시지 상자 */
.am-main .message { border: 1px solid #000; background: #fff; color: #000; padding: 12px 14px; margin: 0 0 18px; border-radius: 0; }
.am-main .message.error { border-color: #8a1f2d; color: #8a1f2d; }

/* 사용자 작성 본문 */
.am-main .xe_content { font-size: 15.5px; line-height: 1.8; color: var(--am-text); overflow-wrap: anywhere; }
.am-main .board .read_body a, .am-main .fbItem .xe_content a { text-decoration: underline; text-underline-offset: 3px; }
.am-main .xe_content blockquote { margin: 16px 0; padding: 4px 0 4px 16px; border-left: 2px solid #000; color: var(--am-muted); }
.am-main .xe_content pre { background: var(--am-band); border: 1px solid var(--am-line-soft); padding: 14px 16px; overflow-x: auto; font-size: 13.5px; line-height: 1.6; white-space: pre; word-break: normal; }
.am-main .xe_content code { font-family: Consolas, "D2Coding", monospace; }
.am-main .xe_content hr { border: 0; border-top: 1px solid var(--am-line); margin: 28px 0; }

/* 위젯·페이지: 고정 폭 요소가 화면을 넘지 않게, 글꼴·색은 흑백 언어로 */
.am-main .xe-widget-wrapper, .am-main .widgetContainer, .am-main .widgetTableA { font-family: var(--am-font) !important; max-width: 100%; }
.am-main .xe-widget-wrapper a { color: #000; }
.am-main [widget], .am-main .zbxe_widget_output { max-width: 100% !important; }
@media (max-width: 1000px) { .am-main [style*="width: 900px"], .am-main [style*="width:900px"], .am-main [style*="width: 975px"], .am-main [style*="width:975px"] { width: 100% !important; height: auto !important; } }

/* 회원 화면 (로그인·가입 등): 가운데 좁은 패널 */
.am-main .xm, .am-main .signin, .am-main .login-header, .am-main .member { font-family: var(--am-font); }

/* XE 팝업 메뉴 (회원 이름 클릭) */
#popup_menu_area { border: 1px solid #000 !important; border-radius: 0 !important; box-shadow: none !important; background: #fff !important; }
#popup_menu_area ul { padding: 6px 0 !important; }
#popup_menu_area li a { color: #000 !important; padding: 6px 16px !important; }
#popup_menu_area li a:hover { background: #000 !important; color: #fff !important; text-decoration: none !important; }

/* ── 하단 ── */
.am-foot { text-align: center; color: var(--am-muted); font-size: 13px; padding: 28px 16px 36px; border-top: 1px solid var(--am-line-soft); }
.am-foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; margin: 0 0 14px; }
.am-foot-links a { color: var(--am-text); }
.am-foot-copy { margin: 0; font-size: 12px; font-family: var(--am-mont); letter-spacing: .04em; }
.am-foot-copy a { color: #3a3b45; }

/* XE 공통 CSS(xe.min.css) 보정: Tahoma 12px 표·입력 글꼴, .btn !important 고정값 */
.am button, .am input, .am select, .am table, .am textarea { font-family: inherit; }
.am table { font-size: inherit; }
.am .btn, .am button.btn, .am input.btn { height: auto !important; line-height: 1.2 !important; padding: .72rem 1.5rem !important; background-image: none; filter: none; }
.am .btnArea { text-align: inherit; }

/* 회원 화면 (XE 기본 회원 스킨 .xm, 부트스트랩 기반) — 직각·그림자 없음·흑백 */
.am .xm, .am .xm * { border-radius: 0 !important; box-shadow: none !important; text-shadow: none !important; }
.am .xm { font-family: var(--am-font); font-size: 15px; color: var(--am-text); }
.am .xm h1, .am .xm h2, .am .xm h3 { font-weight: 400; color: #000; }
.am .xm .signin { border: 1px solid var(--am-line); background: #fff; max-width: 420px; }
.am .xm .login-header { background: #fff; border-bottom: 1px solid #000; padding: 20px 24px; }
.am .xm .login-header h1 { font-size: 1.1rem; margin: 0; }
.am .xm .login-body { padding: 20px 24px; }
.am .xm .login-footer { background: var(--am-band); border-top: 1px solid var(--am-line-soft); padding: 12px 24px; }
.am .xm .login-footer a { color: var(--am-text); }
.am .xm input[type=text], .am .xm input[type=password], .am .xm input[type=email], .am .xm input[type=url], .am .xm input[type=tel], .am .xm select, .am .xm textarea { border: 1px solid var(--am-line) !important; background: #fff; color: var(--am-text); height: auto; padding: .6rem .8rem; font-size: 15px; }
.am .xm input:focus, .am .xm select:focus, .am .xm textarea:focus { border-color: #000 !important; outline: 0; }
.am .xm .btn, .am .xm .btn-inverse, .am .xm .btn-primary, .am .xm input[type=submit] { background: #fff !important; background-image: none !important; color: #000 !important; border: 1px solid #000 !important; font-size: .92rem; padding: .72rem 1.5rem !important; height: auto !important; line-height: 1.2 !important; }
.am .xm .btn:hover, .am .xm .btn-inverse:hover, .am .xm .btn-primary:hover, .am .xm input[type=submit]:hover { background: #000 !important; color: #fff !important; }
.am .xm .btn-inverse, .am .xm .btn-primary { background: var(--am-accent-bg) !important; border-color: var(--am-accent-line) !important; color: var(--am-text) !important; }
.am .xm .table { border-top: 1px solid #000; }
.am .xm .table th, .am .xm .table td { border-top: 0; border-bottom: 1px solid var(--am-line-soft); padding: 12px 10px; }
.am .xm .nav-tabs { border-bottom: 1px solid #000; }
.am .xm .nav-tabs > li > a { color: var(--am-text); }
.am .xm .nav-tabs > .active > a { color: #000; border-color: #000 #000 #fff !important; }
.am .xm .alert, .am .xm .message { border: 1px solid #000; background: #fff; color: #000; }
.am .xm .control-label, .am .xm label { color: var(--am-muted); font-size: 14px; }
.am .xm a { color: #000; }

/* XE 메인(위젯 페이지)의 사용자 문서 색을 흑백 언어로: 짙은 회색 상자 → 검정 반전 띠, 연회색 → 띠 회색 */
.am-main-index .back_dark_content { background-color: #000 !important; }
.am-main-index .back_content { background-color: var(--am-band) !important; }
