/* ==========================================================
   Airsoft Basic layout (A안) — 밝은 바탕 + 포인트 1색, 큰 글자
   ========================================================== */

.as-site {
	--as-bg: #F6F5F2;
	--as-surface: #FFFFFF;
	--as-surface-2: #F9F8F5;
	--as-border: #E2E0DA;
	--as-border-2: #EEECE6;
	--as-text: #1C1C1C;
	--as-text-2: #444444;
	--as-muted: #666666;
	--as-placeholder: #E8E6DF;
	--as-accent: #4F6137;
	--as-accent-soft: #EEF1E8;
	--as-accent-text: #3F4E2C;
	--as-hot: #E07A1F;
	--as-radius: 12px;
	--as-radius-s: 8px;
	--as-font: Pretendard, "Pretendard Variable", "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
}
.as-site.as-accent-navy { --as-accent: #1F3A5F; --as-accent-soft: #E8EEF5; --as-accent-text: #1B3252; }
.as-site.as-accent-brown { --as-accent: #5B4A3A; --as-accent-soft: #F0EBE5; --as-accent-text: #4A3C2E; }

html { background: #F6F5F2; }
body { margin: 0; }

.as-site {
	font-family: var(--as-font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--as-text);
	background: var(--as-bg);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	-webkit-font-smoothing: antialiased;
	word-break: keep-all;
}
.as-site *, .as-site *::before, .as-site *::after { box-sizing: border-box; }
.as-site a { color: inherit; text-decoration: none; }
.as-site a:hover { color: var(--as-accent); }
.as-site img { max-width: 100%; height: auto; }

.as-wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }

.as-skip a {
	position: absolute; left: -9999px; top: 0;
	padding: 8px 12px; background: var(--as-accent); color: #fff; z-index: 1000;
}
.as-skip a:focus { left: 8px; top: 8px; }
.as-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 버튼 ---------- */
.as-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	min-height: 44px; padding: 0 18px;
	border-radius: var(--as-radius-s);
	font-size: 15px; font-weight: 500; line-height: 1;
	white-space: nowrap; cursor: pointer;
	border: 1px solid transparent;
	transition: background .15s, color .15s, border-color .15s;
}
/* `.as-site a { color: inherit }` 보다 우선하도록 .as-site 를 붙인다 */
.as-site .as-btn-primary { background: var(--as-accent); color: #fff; font-weight: 700; }
.as-site .as-btn-primary:hover { color: #fff; filter: brightness(1.08); }
.as-site .as-btn-outline { background: var(--as-surface); border-color: #D5D2CA; color: var(--as-text); }
.as-site .as-btn-outline:hover { border-color: var(--as-accent); color: var(--as-accent); }
.as-site .as-btn-ghost { background: transparent; color: var(--as-muted); }
.as-site .as-btn-ghost:hover { background: var(--as-accent-soft); color: var(--as-accent); }

/* ---------- 헤더 ---------- */
.as-header {
	background: var(--as-surface);
	border-bottom: 1px solid var(--as-border);
	position: relative; z-index: 50;
}
.as-header-inner {
	min-height: 72px;
	display: flex; align-items: center; justify-content: space-between; gap: 20px;
	flex-wrap: nowrap;
}
.as-logo {
	display: inline-flex; align-items: center; gap: 10px;
	font-size: 22px; font-weight: 700; letter-spacing: -0.3px;
	padding: 12px 0; flex-shrink: 0; white-space: nowrap;
}
.as-logo:hover { color: var(--as-text); }
.as-logo-mark {
	width: 34px; height: 34px; border-radius: 8px;
	background: var(--as-accent); color: #fff;
	display: inline-flex; align-items: center; justify-content: center;
}
.as-logo-img { height: 36px; width: auto; display: block; }

.as-menu-toggle {
	display: none;
	min-height: 44px; padding: 0 12px; gap: 6px;
	align-items: center;
	background: var(--as-surface); border: 1px solid #D5D2CA; border-radius: var(--as-radius-s);
	font: inherit; font-size: 15px; font-weight: 500; color: var(--as-text); cursor: pointer;
}
.as-menu-toggle i { font-size: 20px; }

.as-gnb {
	display: flex; align-items: center; gap: 20px; flex: 1; min-width: 0;
	justify-content: space-between; flex-wrap: nowrap;
}
/* 메뉴가 많아 자리가 모자라면 줄바꿈 대신 가로로 밀어서 본다 */
.as-gnb-list {
	list-style: none; margin: 0; padding: 0;
	display: flex; gap: 2px; flex-wrap: nowrap;
	min-width: 0; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
}
.as-gnb-list::-webkit-scrollbar { display: none; }
.as-gnb-list > li { flex-shrink: 0; }
.as-gnb-list > li { position: relative; }
.as-gnb-list > li > a {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
	font-size: 16px; font-weight: 500; border-radius: var(--as-radius-s);
}
.as-gnb-list > li > a:hover { background: var(--as-surface-2); color: var(--as-text); }
.as-gnb-list > li.active > a { background: var(--as-accent-soft); color: var(--as-accent-text); font-weight: 700; }
.as-gnb-sub {
	list-style: none; margin: 0; padding: 6px;
	position: absolute; left: 0; top: 100%;
	min-width: 180px; background: var(--as-surface);
	border: 1px solid var(--as-border); border-radius: var(--as-radius-s);
	box-shadow: 0 8px 24px rgba(28,28,28,.08);
	display: none; z-index: 60;
}
.as-gnb-list > li:hover > .as-gnb-sub,
.as-gnb-list > li:focus-within > .as-gnb-sub { display: block; }
.as-gnb-sub a { display: block; padding: 10px 12px; border-radius: 6px; font-size: 15px; }
.as-gnb-sub a:hover { background: var(--as-surface-2); color: var(--as-text); }
.as-gnb-sub li.active a { color: var(--as-accent); font-weight: 700; }

.as-header-side { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; flex-shrink: 0; }
.as-search {
	display: flex; align-items: center; gap: 8px;
	height: 44px; padding: 0 14px;
	flex: 0 1 220px; min-width: 130px;
	border: 1px solid #D5D2CA; border-radius: var(--as-radius-s); background: var(--as-surface);
}
.as-search:focus-within { border-color: var(--as-accent); }
.as-search i { color: var(--as-muted); font-size: 18px; }
.as-search input {
	border: 0; outline: 0; background: transparent; width: 100%;
	font: inherit; font-size: 15px; color: var(--as-text);
}
.as-search input::placeholder { color: #8A877F; }
.as-account { display: flex; gap: 6px; }

/* 모바일 서랍 메뉴 전용 요소 — PC 에서는 숨김 */
.as-drawer-head { display: none; }
.as-drawer-dim { display: none; }

/* ---------- 본문 ---------- */
.as-main { padding: 28px 20px 56px; flex: 1; }
.as-content { min-width: 0; }

.as-card {
	background: var(--as-surface);
	border: 1px solid var(--as-border);
	border-radius: var(--as-radius);
}
.as-home { display: flex; flex-direction: column; gap: 36px; }
.as-section { display: flex; flex-direction: column; gap: 14px; }
.as-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.as-sec-title { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.3; }
.as-more { font-size: 14px; color: var(--as-muted); }
.as-more:hover { color: var(--as-accent); }
.as-empty { margin: 0; padding: 20px; color: var(--as-muted); font-size: 15px; text-align: center; }

.as-chip {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 56px; padding: 3px 9px;
	border-radius: 4px; font-size: 13px; font-weight: 500; line-height: 1.4;
	color: var(--as-accent-text); background: var(--as-accent-soft); white-space: nowrap;
}
.as-chip-solid { color: #fff; background: #3f4e2c; font-weight: 700; font-size: 12px; min-width: 0; }

/* 공지 */
.as-notice { padding: 18px 22px; display: flex; flex-direction: column; gap: 10px; }
.as-notice .as-sec-title { font-size: 18px; }
.as-notice-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.as-notice-list a { display: flex; align-items: center; gap: 12px; padding: 6px 0; min-height: 40px; }

/* 목록 */
.as-list { overflow: hidden; }
.as-row {
	display: flex; align-items: center; gap: 14px;
	padding: 13px 20px; min-height: 48px;
	border-bottom: 1px solid var(--as-border-2);
}
.as-row:last-child { border-bottom: 0; }
.as-row:hover { background: var(--as-surface-2); color: var(--as-text); }
.as-row-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; }
.as-row-title { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.as-row:hover .as-row-title { color: var(--as-accent); }
.as-row-cmt { font-size: 14px; font-weight: 700; color: var(--as-hot); white-space: nowrap; }
.as-row-writer { width: 96px; font-size: 14px; color: var(--as-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-row-date { width: 52px; text-align: right; font-size: 14px; color: var(--as-muted); white-space: nowrap; }
.as-row-views { font-size: 14px; color: var(--as-muted); white-space: nowrap; }
.as-rank { width: 22px; font-size: 16px; font-weight: 700; color: var(--as-accent); }

/* 사진 카드 */
.as-grid { display: grid; gap: 16px; }
.as-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.as-photo { display: flex; flex-direction: column; overflow: hidden; }
.as-photo:hover { color: var(--as-text); border-color: #CFCCC3; }
.as-photo-img {
	display: flex; align-items: center; justify-content: center;
	aspect-ratio: 4 / 3; background: var(--as-placeholder) center / cover no-repeat;
	color: #9B988F; font-size: 30px;
}
.as-photo-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; }
.as-photo-title { font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-photo:hover .as-photo-title { color: var(--as-accent); }
.as-photo-meta { font-size: 13px; color: var(--as-muted); }

/* ---------- 카드뉴스 1안 · 상단 큰 배너 ---------- */
.as-news-hero { display: flex; flex-direction: column; gap: 16px; }
.as-hero-stage {
	position: relative; background: var(--as-surface);
	border: 1px solid var(--as-border); border-radius: 14px; overflow: hidden;
}
.as-hero-slide { display: none; }
.as-hero-slide.is-on { display: flex; }
.as-hero-img {
	width: 58%; flex-shrink: 0; aspect-ratio: 16 / 10;
	background: var(--as-placeholder) center / cover no-repeat;
	display: flex; align-items: center; justify-content: center;
	color: #9B988F; font-size: 40px;
}
.as-hero-body {
	flex: 1; min-width: 0; padding: 32px 34px 28px;
	display: flex; flex-direction: column; gap: 12px; justify-content: center;
}
.as-hero-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.as-hero-date { font-size: 14px; color: var(--as-muted); }
.as-hero-title { margin: 0; font-size: 26px; font-weight: 700; line-height: 1.35; }
.as-hero-title a:hover { color: var(--as-accent); }
.as-hero-summary {
	margin: 0; font-size: 16px; color: var(--as-text-2); line-height: 1.6;
	overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
}
.as-hero-more { align-self: flex-start; margin-top: 6px; }
.as-hero-nav {
	position: absolute; top: 50%; transform: translateY(-50%);
	width: 44px; height: 44px; border-radius: 50%; border: 0; padding: 0;
	background: rgba(255,255,255,.94); box-shadow: 0 2px 8px rgba(28,28,28,.18);
	display: flex; align-items: center; justify-content: center; cursor: pointer;
	color: var(--as-text); font-size: 20px;
}
.as-hero-nav:hover { background: #fff; color: var(--as-accent); }
.as-hero-prev { left: 16px; }
.as-hero-next { left: calc(58% - 60px); }
.as-hero-dots { display: flex; justify-content: center; gap: 8px; }
.as-hero-dot {
	width: 9px; height: 9px; padding: 0; border: 0; border-radius: 5px;
	background: #D5D2CA; cursor: pointer; transition: width .2s, background .2s;
}
.as-hero-dot.is-on { width: 28px; background: var(--as-accent); }

/* ---------- 카드뉴스 2안 · 3열 카드 ---------- */
.as-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.as-newscard { display: flex; flex-direction: column; overflow: hidden; }
.as-newscard:hover { color: var(--as-text); border-color: #CFCCC3; }
.as-newscard-img {
	position: relative; display: flex; align-items: center; justify-content: center;
	aspect-ratio: 4 / 3; background: var(--as-placeholder) center / cover no-repeat;
	color: #9B988F; font-size: 30px;
}
.as-newscard-tag { position: absolute; top: 10px; left: 10px; }
.as-newscard-count {
	position: absolute; bottom: 10px; right: 10px;
	padding: 3px 9px; border-radius: 5px; font-size: 12px; font-weight: 500;
	color: #fff; background: rgba(28,28,28,.65);
}
.as-newscard-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.as-newscard-title {
	font-size: 17px; font-weight: 500; line-height: 1.45;
	overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.as-newscard:hover .as-newscard-title { color: var(--as-accent); }
.as-newscard-summary {
	font-size: 14px; color: var(--as-muted); line-height: 1.5;
	overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.as-newscard-date { font-size: 13px; color: #8A877F; padding-top: 2px; }

/* ---------- 푸터 ---------- */
.as-footer { background: var(--as-surface); border-top: 1px solid var(--as-border); margin-top: auto; }
.as-footer-inner {
	padding: 22px 20px; font-size: 13px; color: var(--as-muted);
	display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap;
}
.as-footer-links { display: flex; gap: 14px; }
.as-footer-links a:hover { color: var(--as-accent); }

/* ---------- 라이믹스 공통 요소 정돈 (로그인 폼, 회원 페이지 등) ---------- */
.as-content .rhymix_content, .as-content .xe_content { font-size: 16px; line-height: 1.7; }

/* ---------- 반응형 ---------- */
@media (max-width: 1280px) {
	.as-gnb-list > li > a { padding: 0 11px; font-size: 15px; }
	.as-account .as-btn { padding: 0 12px; }
}
@media (max-width: 1120px) {
	.as-gnb-list > li > a { padding: 0 9px; }
	.as-search { flex-basis: 150px; }
	.as-logo { font-size: 20px; }
}
@media (max-width: 960px) {
	.as-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.as-hero-title { font-size: 22px; }
	.as-hero-body { padding: 24px 24px 22px; }
}
/* 1024px 이하 — 메뉴를 오른쪽 서랍으로 */
@media (max-width: 720px) {
	.as-header-inner { gap: 12px; flex-wrap: nowrap; min-height: 64px; }
	.as-logo { min-width: 0; font-size: 20px; }
	.as-logo-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.as-menu-toggle { display: none; flex-shrink: 0; }

	/* --- 오른쪽에서 밀려 나오는 서랍 메뉴 --- */
	.as-drawer-dim[hidden] { display: none; }
	.as-drawer-dim:not([hidden]) {
		display: block; position: fixed; inset: 0; z-index: 90;
		background: rgba(28, 28, 28, .45);
		opacity: 0; transition: opacity .22s ease;
	}
	.as-drawer-dim.is-on { opacity: 1; }

	.as-gnb {
		display: flex; position: fixed; top: 0; right: 0; bottom: 0; z-index: 100;
		width: 84%; max-width: 320px; height: 100%;
		flex-direction: column; align-items: stretch; flex-wrap: nowrap;
		justify-content: flex-start; gap: 0; padding: 0;
		background: var(--as-surface);
		box-shadow: -8px 0 28px rgba(28, 28, 28, .16);
		transform: translateX(100%);
		transition: transform .24s ease;
		overflow-y: auto; -webkit-overflow-scrolling: touch;
		overscroll-behavior: contain;
	}
	.as-gnb.is-open { transform: translateX(0); }

	.as-drawer-head {
		display: flex; align-items: center; justify-content: space-between;
		gap: 12px; padding: 0 8px 0 20px; min-height: 64px;
		border-bottom: 1px solid var(--as-border);
		position: sticky; top: 0; background: var(--as-surface); z-index: 1;
	}
	.as-drawer-title { font-size: 17px; font-weight: 700; }
	.as-drawer-close {
		display: inline-flex; align-items: center; justify-content: center;
		width: 48px; height: 48px; padding: 0;
		border: 0; background: transparent; color: var(--as-text);
		font-size: 24px; line-height: 1; cursor: pointer; border-radius: var(--as-radius-s);
	}
	.as-drawer-close:hover { background: var(--as-surface-2); }

	.as-gnb-list { flex-direction: column; flex-wrap: nowrap; gap: 0; padding: 8px 12px; }
	.as-gnb-list > li > a {
		width: 100%; min-height: 52px; padding: 0 12px;
		font-size: 17px; border-radius: var(--as-radius-s);
	}
	.as-gnb-sub { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 4px 16px; }
	.as-gnb-sub a { padding: 10px 12px; min-height: 44px; display: flex; align-items: center; }

	.as-header-side {
		flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 10px;
		padding: 14px 20px 24px; margin-top: auto;
		border-top: 1px solid var(--as-border);
	}
	.as-search { width: 100%; flex-basis: auto; height: 44px; }
	.as-account { justify-content: stretch; }
	.as-account .as-btn { flex: 1; }
	.as-main { padding: 20px 16px 40px; }
	.as-row { padding: 12px 14px; gap: 10px; flex-wrap: wrap; }
	.as-row-main { flex-basis: 100%; order: 1; }
	.as-row .as-chip { order: 2; }
	.as-row-writer { order: 3; width: auto; }
	.as-row-date { order: 4; width: auto; margin-left: auto; }
	.as-row-views { order: 4; margin-left: auto; }
	.as-row-title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
	.as-notice-list a { flex-wrap: wrap; }
	.as-notice-list .as-row-title { flex: 1 1 60%; }
	.as-photo-title { white-space: normal; }
}

@media (max-width: 768px) {
	.as-hero-slide.is-on { flex-direction: column; }
	.as-hero-img { width: 100%; aspect-ratio: 4 / 3; }
	.as-hero-body { padding: 18px 18px 20px; gap: 10px; }
	.as-hero-title { font-size: 20px; }
	.as-hero-summary { -webkit-line-clamp: 2; font-size: 15px; }
	.as-hero-more { align-self: stretch; }
	.as-hero-nav { top: 28%; }
	.as-hero-next { left: auto; right: 16px; }
	.as-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.as-newscard-body { padding: 10px 12px 12px; }
	.as-newscard-title { font-size: 15px; }
}

@media (max-width: 480px) {
	.as-grid-4 { gap: 10px; }
	.as-photo-body { padding: 10px 10px 12px; }
}

/* 서랍 열렸을 때 뒤 배경 스크롤 잠금 */
html.as-drawer-open, html.as-drawer-open body { overflow: hidden; }

/* ==========================================================
   회원(로그인 · 회원가입 · 계정찾기 · 내 정보) 화면
   기본 회원 스킨 마크업 위에 테마 스타일을 덮어쓴다
   ========================================================== */
.as-site .xm { font-family: var(--as-font); font-size: 16px; color: var(--as-text); }
.as-site .xm label,
.as-site .xm input,
.as-site .xm button,
.as-site .xm select,
.as-site .xm textarea { font-family: inherit; font-size: 16px; line-height: 1.5; }

/* 입력칸 공통 */
.as-site .xm input[type="text"],
.as-site .xm input[type="password"],
.as-site .xm input[type="email"],
.as-site .xm input[type="tel"],
.as-site .xm input[type="number"],
.as-site .xm input[type="search"],
.as-site .xm select,
.as-site .xm textarea {
	height: auto; min-height: 48px; width: 100%; max-width: 100%;
	padding: 10px 14px; margin: 0;
	border: 1px solid #D5D2CA; border-radius: var(--as-radius-s);
	background: var(--as-surface); color: var(--as-text);
	box-shadow: none; box-sizing: border-box;
}
.as-site .xm textarea { min-height: 120px; }
.as-site .xm input:focus,
.as-site .xm select:focus,
.as-site .xm textarea:focus { border-color: var(--as-accent); outline: 0; box-shadow: none; }
.as-site .xm input::placeholder { color: #8A877F; }
.as-site .xm input[type="checkbox"],
.as-site .xm input[type="radio"] { width: 18px; height: 18px; min-height: 0; margin: 0 7px 0 0; vertical-align: middle; }

/* 버튼 공통 */
.as-site .xm .btn,
.as-site .xm input[type="submit"],
.as-site .xm button[type="submit"] {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 48px; padding: 0 20px; width: auto;
	border: 1px solid #D5D2CA; border-radius: var(--as-radius-s);
	background: var(--as-surface); color: var(--as-text);
	font-size: 16px; font-weight: 500; line-height: 1;
	text-shadow: none; box-shadow: none; cursor: pointer;
}
.as-site .xm .btn:hover { border-color: var(--as-accent); color: var(--as-accent); }
.as-site .xm .btn-inverse,
.as-site .xm .submit,
.as-site .xm input[type="submit"],
.as-site .xm button[type="submit"] {
	background: var(--as-accent); border-color: var(--as-accent); color: #fff; font-weight: 700;
}
.as-site .xm .btn-inverse:hover,
.as-site .xm .submit:hover,
.as-site .xm input[type="submit"]:hover { color: #fff; filter: brightness(1.08); }

/* 상단 탭 (내 정보 등) */
.as-site .xm .nav-tabs { border-bottom: 1px solid var(--as-border); margin: 0 0 20px; padding: 0; list-style: none; }
.as-site .xm .nav-tabs > li > a {
	padding: 12px 16px; margin: 0 2px -1px 0; line-height: 1.4;
	font-size: 15px; border: 1px solid transparent; border-radius: var(--as-radius-s) var(--as-radius-s) 0 0;
	color: var(--as-text-2); background: transparent;
}
.as-site .xm .nav-tabs > li > a:hover { background: var(--as-surface-2); color: var(--as-text); border-color: transparent; }
.as-site .xm .nav-tabs > li.active > a {
	background: var(--as-surface); color: var(--as-accent-text); font-weight: 700;
	border-color: var(--as-border) var(--as-border) var(--as-surface);
}

/* 로그인 카드 */
.as-site .xm .signin {
	width: 100%; max-width: 420px; margin: 40px auto;
	background: var(--as-surface);
	border: 1px solid var(--as-border); border-radius: var(--as-radius);
	box-shadow: none;
}
.as-site .xm .signin > .login-header { padding: 20px 24px 16px; border-bottom: 1px solid var(--as-border); }
.as-site .xm .signin > .login-header > h1 { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.4; color: var(--as-text); }
.as-site .xm .signin > .login-header > h1 > i { display: none; }
.as-site .xm .signin > .login-body { max-height: none; padding: 22px 24px 24px; }
.as-site .xm .signin .control-group { position: static; padding: 0; margin: 0 0 12px; }
.as-site .xm .signin .control-group:last-child { margin-bottom: 0; }
.as-site .xm .signin #uid { margin-bottom: 10px; }
.as-site .xm .signin input[type="checkbox"] { margin: 0 8px 0 0; }
.as-site .xm .signin label[for="keepid_opt"] {
	display: inline-flex; align-items: center; margin: 2px 0 14px;
	font-size: 15px; color: var(--as-text-2); cursor: pointer;
}
.as-site .xm .signin .submit { position: static; width: 100%; margin: 0; }
.as-site .xm .signin #warning p {
	margin: 0 0 12px; padding: 10px 12px;
	background: var(--as-surface-2); border: 1px solid var(--as-border); border-radius: var(--as-radius-s);
	font-size: 13px; line-height: 1.5; color: var(--as-muted);
}
.as-site .xm .signin > .login-footer {
	padding: 16px 24px; text-align: center;
	background: var(--as-surface-2); border-top: 1px solid var(--as-border);
	border-radius: 0 0 var(--as-radius) var(--as-radius);
	box-shadow: none; color: var(--as-border);
	font-size: 15px;
}
.as-site .xm .signin > .login-footer > a { color: var(--as-text-2); padding: 0 8px; }
.as-site .xm .signin > .login-footer > a:hover { color: var(--as-accent); text-decoration: none; }
.as-site .xm .signin .message { margin: 0 0 14px; padding: 12px 14px; border-radius: var(--as-radius-s); font-size: 15px; }
.as-site .xm .signin .message.error { background: #FCEEE9; border: 1px solid #E8C4B4; color: #9C3B14; }
.as-site .xm .signin .message p { margin: 0; }

/* 회원가입 · 계정찾기 등 일반 폼 */
.as-site .xm form { margin: 0 0 24px; }
.as-site .xm .control-group { margin: 0 0 16px; }
.as-site .xm label { display: block; margin: 0 0 6px; font-size: 15px; font-weight: 500; color: var(--as-text); }
.as-site .xm label.x_inline { display: inline-flex; align-items: center; margin: 0 16px 0 0; font-weight: 400; }
.as-site .xm .x_help-block,
.as-site .xm .description { font-size: 13px; color: var(--as-muted); margin: 6px 0 0; }

@media (max-width: 768px) {
	.as-site .xm .signin { margin: 20px auto; }
	.as-site .xm .signin > .login-body { padding: 18px 16px 20px; }
	.as-site .xm .signin > .login-header { padding: 16px 16px 14px; }
	.as-site .xm .signin > .login-footer { padding: 14px 16px; }
}


/* ── 모바일 가로 메뉴바 (2026-11-17) ── */
.as-mobile-nav {
	display: none;
}

@media (max-width: 720px) {
	.as-mobile-nav {
		display: block;
		background: var(--as-surface);
		border-bottom: 1px solid var(--as-border);
		position: sticky;
		top: 0;
		z-index: 50;
	}
	.as-mobile-nav-list {
		display: flex;
		list-style: none;
		margin: 0;
		padding: 0 8px;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		gap: 0;
	}
	.as-mobile-nav-list::-webkit-scrollbar {
		display: none;
	}
	.as-mobile-nav-list li {
		flex-shrink: 0;
	}
	.as-mobile-nav-list a {
		display: block;
		padding: 12px 14px;
		font-size: 15px;
		font-weight: 500;
		color: var(--as-muted);
		text-decoration: none;
		white-space: nowrap;
		border-bottom: 2.5px solid transparent;
		transition: color 0.15s, border-color 0.15s;
	}
	.as-mobile-nav-list a:hover {
		color: var(--as-text);
	}
	.as-mobile-nav-list a.is-active {
		font-weight: 700;
		color: var(--as-accent);
		border-bottom-color: var(--as-accent);
	}

	/* 헤더도 sticky로 맞춤 */
	.as-header {
		position: sticky;
		top: 0;
		z-index: 51;
	}
}


/* 헤더 인라인 메뉴 (2026-11-17) */
.as-inline-nav {
	display: none;
}
@media (max-width: 720px) {
	.as-inline-nav {
		display: flex;
		align-items: center;
		gap: 0;
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		flex: 1;
		min-width: 0;
		margin: 0 4px;
	}
	.as-inline-nav::-webkit-scrollbar { display: none; }
	.as-inline-nav a {
		flex-shrink: 0;
		padding: 0 10px;
		font-size: 14px;
		font-weight: 500;
		color: var(--as-muted);
		text-decoration: none;
		white-space: nowrap;
		line-height: 64px;
	}
	.as-inline-nav a.is-active {
		font-weight: 700;
		color: var(--as-accent);
	}
}


/* 아이폰 듀오 바깥액정 최적화 (2026-11-17) */
@media (max-width: 300px) {
  /* 헤더 축소 */
  .as-header-inner { min-height: 48px !important; padding: 0 8px !important; gap: 6px !important; }
  .as-logo-mark { display: none !important; }
  .as-logo-text { font-size: 17px !important; }
  .as-menu-toggle { padding: 6px 10px !important; font-size: 13px !important; min-height: 36px !important; }
  .as-menu-toggle i { font-size: 16px !important; }
  .as-menu-toggle span { font-size: 13px !important; }
  .as-inline-nav::-webkit-scrollbar { display: none; }
	.as-inline-nav a { padding: 0 6px !important; font-size: 12px !important; line-height: 48px !important; }

  /* 본문 여백 축소 */
  .as-main { padding: 12px 10px 24px !important; }

  /* 게시판 */
  .as-board-title { font-size: 18px !important; }
  .as-board-head .as-btn { padding: 6px 12px !important; font-size: 13px !important; min-height: 36px !important; }
  .as-cats { flex-wrap: nowrap !important; overflow-x: auto !important; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .as-cats::-webkit-scrollbar { display: none; }
  .as-cats li a { padding: 6px 10px !important; font-size: 13px !important; white-space: nowrap; }

  /* 글 목록 축소 */
  .as-row { padding: 8px 6px !important; gap: 4px !important; }
  .as-row-thumb, .as-col-thumb { width: 36px !important; height: 36px !important; min-width: 36px !important; }
  .as-row-title { font-size: 14px !important; }
  .as-chip { font-size: 11px !important; padding: 2px 6px !important; }
  .as-row-writer, .as-row-date, .as-row-views { font-size: 12px !important; }
  .as-list-cols { font-size: 12px !important; }

  /* 검색 축소 */
  .as-board-search .as-select { font-size: 12px !important; padding: 4px !important; }
  .as-board-search .as-search-field { height: 36px !important; }
  .as-board-search .as-search-field input { font-size: 13px !important; }
  .as-board-search .as-btn { font-size: 12px !important; padding: 6px 10px !important; min-height: 36px !important; }

  /* 페이지네이션 */
  .as-pagination .as-page { min-width: 32px !important; min-height: 32px !important; font-size: 13px !important; }

  /* 카드뉴스 히어로 */
  .as-hero-body { padding: 10px 12px !important; }
  .as-hero-body .as-hero-title { font-size: 16px !important; }
  .as-hero-body .as-hero-desc { font-size: 13px !important; }
  .as-hero-body .as-btn { padding: 8px 16px !important; font-size: 14px !important; }

  /* 최신글 */
  .as-section-title { font-size: 16px !important; }
  .as-recent-row { padding: 8px 4px !important; font-size: 14px !important; }
}

/* 헤더 계정 버튼 (2026-11-17) */
.as-header-account {
	display: none;
}
@media (max-width: 720px) {
	.as-header-account {
		display: flex;
		align-items: center;
		flex-shrink: 0;
		margin-left: auto;
	}
	.as-hdr-login,
	.as-hdr-nick {
		display: inline-flex;
		align-items: center;
		gap: 4px;
		padding: 8px 12px;
		font-size: 14px;
		font-weight: 500;
		color: var(--as-text);
		text-decoration: none;
		white-space: nowrap;
		background: none;
		border: 1px solid var(--as-border);
		border-radius: var(--as-radius-s);
	}
	.as-hdr-nick {
		max-width: 100px;
		overflow: hidden;
		text-overflow: ellipsis;
	}
}
@media (max-width: 300px) {
	.as-hdr-login,
	.as-hdr-nick { padding: 6px 8px !important; font-size: 12px !important; }
	.as-hdr-nick { max-width: 60px; }
}

/* 모바일 메뉴버튼 숨기고 슬라이딩 메뉴로 대체 (2026-11-17) */
@media (max-width: 720px) {
	/* (2026-11-19) 가로 메뉴는 없애고 '메뉴' 햄버거 버튼으로 서랍을 연다 */
	.as-menu-toggle { display: inline-flex !important; margin-left: auto; flex-shrink: 0; }
	.as-inline-nav { display: none !important; }
	.as-header-account + .as-menu-toggle { margin-left: 0; }
}
/* ==========================================================
   2026-11-19 헤더 포인트 표기 · 검색칸 축소 · 회원 화면 보정
   ========================================================== */
/* 아이디 옆 포인트 (메인 컬러, 숫자+P) */
.as-site .as-pt {
	margin-left: 8px; font-size: 14px; font-weight: 700; line-height: 1;
	color: var(--as-accent); white-space: nowrap;
}
.as-site .as-btn-outline .as-pt { margin-left: 6px; }
.as-site .as-hdr-nick .as-pt { margin-left: 4px; font-size: 13px; }

/* 검색칸 폭 축소 (220 → 170px) */
.as-search { flex: 0 1 170px; min-width: 120px; }
@media (max-width: 1120px) {
	.as-search { flex-basis: 130px; }
}
@media (max-width: 768px) {
	.as-search { flex-basis: auto; }
}

/* 비밀번호 재확인: 아이디칸·비밀번호칸 가운데 정렬 */
.as-site .xm:has(input[name="act"][value="procMemberModifyInfoBefore"]) > h1,
.as-site .xm:has(input[name="act"][value="procMemberModifyInfoBefore"]) > p { text-align: center; }
.as-site .xm form:has(input[name="act"][value="procMemberModifyInfoBefore"]) {
	max-width: 420px; margin: 24px auto 40px;
}
.as-site .xm form:has(input[name="act"][value="procMemberModifyInfoBefore"]) > div { margin: 0 0 10px; }
.as-site .xm form:has(input[name="act"][value="procMemberModifyInfoBefore"]) > div input[readonly] {
	background: var(--as-surface-2); color: var(--as-text-2); text-align: center; cursor: default;
}
.as-site .xm form:has(input[name="act"][value="procMemberModifyInfoBefore"]) .input-append {
	display: flex; gap: 8px; align-items: stretch; width: 100%; margin: 0; font-size: 16px; white-space: normal;
}
.as-site .xm form:has(input[name="act"][value="procMemberModifyInfoBefore"]) .input-append input[type="password"] {
	flex: 1 1 auto; width: auto; min-width: 0; border-radius: var(--as-radius-s);
}
.as-site .xm form:has(input[name="act"][value="procMemberModifyInfoBefore"]) .input-append input[type="submit"] {
	flex: 0 0 auto; margin: 0; padding: 0 22px; border-radius: var(--as-radius-s);
}

/* 목록 하단 검색칸 + 페이지 이동: 검색칸과 버튼을 한 줄로 */
.as-site .xm .pagination {
	display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 20px 0;
}
.as-site .xm .pagination > div[style*="clear"] { display: none; }
.as-site .xm .pagination > form {
	display: flex; align-items: center; gap: 8px; float: none !important; margin: 0; width: 320px; max-width: 100%;
}
.as-site .xm .pagination > form input[type="text"] { flex: 1 1 auto; width: auto; min-width: 0; }
.as-site .xm .pagination > form .btn,
.as-site .xm .pagination > form button { flex: 0 0 auto; white-space: nowrap; }
.as-site .xm .pagination > ul { float: none !important; margin: 0 !important; }

@media (max-width: 720px) {
	.as-hdr-nick:has(.as-pt) { max-width: 190px; }
}

/* ==========================================================
   2026-11-19 오른쪽 슬라이드 메뉴: 서랍 안 로그아웃 버튼에 테두리
   ========================================================== */
@media (max-width: 720px) {
	.as-site .as-account .as-btn-ghost { border-color: #D5D2CA; color: var(--as-text); }
	.as-site .as-account .as-btn-ghost:hover { border-color: var(--as-accent); color: var(--as-accent); background: var(--as-surface); }
}

/* 닫힌 서랍의 그림자가 화면 오른쪽 가장자리에 비치지 않도록 */
@media (max-width: 720px) {
	.as-gnb:not(.is-open) { box-shadow: none; visibility: hidden; transition: transform .24s ease, visibility 0s linear .24s; }
	.as-gnb.is-open { visibility: visible; transition: transform .24s ease, visibility 0s; }
}

/* ==========================================================
   2026-11-19 메뉴 목록 표시 기준: 721px 이상 (갤럭시 탭 800px, Z 폴드 펼침 화면 등)
   720px 이하는 '메뉴' 버튼 + 오른쪽 서랍. 721~1024px 구간은 한 줄에 들어가도록 조금 압축
   ========================================================== */
@media (min-width: 721px) and (max-width: 1024px) {
	.as-header-inner { gap: 10px; }
	.as-logo { font-size: 19px; gap: 8px; }
	.as-logo-mark { width: 30px; height: 30px; }
	.as-gnb-list > li > a { padding: 0 7px; font-size: 14px; }
	.as-search { flex: 0 1 110px; min-width: 90px; padding: 0 10px; }
	.as-search i { display: none; }
	.as-account .as-btn { padding: 0 9px; font-size: 14px; }
	.as-account { gap: 2px; }
}

/* 721~900px (태블릿 세로 등): 메뉴 7개가 모두 보이도록 한 번 더 압축 */
@media (min-width: 721px) and (max-width: 900px) {
	.as-header-inner { gap: 6px; }
	.as-logo { font-size: 17px; gap: 6px; }
	.as-logo-mark { width: 26px; height: 26px; }
	.as-logo-mark svg { width: 16px; height: 16px; }
	.as-gnb-list { gap: 0; }
	.as-gnb-list > li > a { padding: 0 5px; font-size: 13.5px; }
	.as-header-side { gap: 4px; }
	.as-search { flex: 0 1 76px; min-width: 64px; padding: 0 8px; height: 40px; }
	.as-search input { font-size: 13px; }
	.as-account .as-btn { padding: 0 7px; font-size: 13px; min-height: 40px; }
	.as-site .as-btn-outline .as-pt { margin-left: 4px; font-size: 12px; }
}

/* 721px 이상: 메뉴 목록이 남는 자리를 차지하고, 검색·로그인 버튼은 항상 오른쪽 끝에 고정 */
@media (min-width: 721px) {
	.as-gnb { width: 100%; justify-content: flex-start; }
	.as-gnb-list { flex: 1 1 auto; min-width: 0; }
	.as-header-side { flex: 0 0 auto; margin-left: auto; }
}
