/* ==========================================================================
   ailo_l04 — 그누보드5 서브 페이지 보정 (css/style.css 다음에 로드)
   - html.ailo-is-index : 메인 / html.ailo-is-sub : 게시판·회원 등 서브 페이지
   - .ailo-page(서브 틀) · .ailo-g5(스킨 영역) 기본 모양은 ailo_common/css/ailo-g5.css
   - 고정 헤더 높이 여백은 ailo-g5.js 가 자동 계산. 직접 정하려면 .ailo-page { --ailo-sub-offset: 80px; }
   ========================================================================== */

/* [변환기 생성] 서브 페이지는 스크롤 전부터 헤더를 '스크롤된 상태' 모양으로 */
html.ailo-is-sub .hd .hd__bar { background: rgba(13, 10, 16, .9); border-color: var(--ailo-line); }

/* [수작업 보정] 아래에 테마별 서브 페이지 보정 */
/* [수작업 보정] 후기 게시판(review) 최신글: 카드 글자를 링크로 감쌈 — 원본 글자색 유지 */
.ailo-rv-link { color: inherit; text-decoration: none; }
.ailo-rv-link:hover, .ailo-rv-link:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.ailo-rv-more { margin: 32px 0 0; text-align: center; }
.ailo-rv-more a { color: inherit; font-weight: 700; opacity: .85; text-decoration: none; }
.ailo-rv-more a:hover, .ailo-rv-more a:focus-visible { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.ailo-rv-more--start { text-align: left; margin-top: 6px; }

/* [수작업 보정] 어두운 바탕 테마: 서브 페이지 흰 카드(.ailo-g5) 안에서 통합 게시판 스킨이 읽는 토큰을
   밝은 바탕용으로 되돌린다(흰 바탕에 흰 글자 방지). 카드 밖 제목은 테마 글자색 그대로, 강조색 분홍 유지 */
html.ailo-is-sub .ailo-g5 { --ailo-bg: #ffffff; --ailo-fg: #16121a; --ailo-muted: #645c66; --ailo-line: rgba(22, 18, 26, .14); --ailo-accent: #e0136f; --ailo-accent-ink: #ffffff; }

/* [2단 메뉴] 공용 드롭다운(ailo_submenu, ailo_common/css/ailo-menu.css) 보정 — 하위 메뉴가 있을 때만 해당.
   헤더 메뉴 링크 규칙(흰 글자·큰 글꼴·밑줄 효과·여백)이 드롭다운 안 링크에 번지지 않게 테마 메뉴 규칙보다 우선(:not(#_)) */
.ailo-sub:not(.ailo-mnav .ailo-sub) a:not(#_) {
  display: block; padding: 9px 12px; border: 0; border-radius: 6px; background: none; opacity: 1;
  color: var(--ailo-fg); font-family: inherit; font-size: 14px; font-weight: 500; font-style: normal; line-height: 1.4;
  letter-spacing: normal; text-transform: none; white-space: normal; transform: none;
}
.ailo-sub:not(.ailo-mnav .ailo-sub) a:not(#_):is(:hover, :focus-visible, [aria-current="page"]) {
  color: var(--ailo-fg); background: color-mix(in srgb, var(--ailo-accent) 12%, transparent); padding-left: 12px;
}
/* 모바일 메뉴 안 펼친 목록: 색은 테마 모바일 메뉴를 따르고 크기·여백만 하위 항목답게 */
.ailo-mnav .ailo-sub a:not(#_) {
  display: block; padding: 6px 8px; border: 0; min-height: 0; opacity: 1; font-size: 15px; font-weight: 500; font-style: normal; line-height: 1.4;
  letter-spacing: normal; text-transform: none;
}
/* [2단 메뉴] 헤더 바(.hd__bar, 공지 띠 아래)의 backdrop-filter 가 position:fixed 드롭다운의 기준 상자가 되어 36px 아래로 어긋남 → 드롭다운이 열린 동안만 흐림 끔 */
.hd__bar:has(.ailo-sub.is-open) { backdrop-filter: none; -webkit-backdrop-filter: none; }
