/* ============================================================
 * NEW BASIC — home.css  v2.0.0
 * 홈 (히어로 · 최신 소식 · 확장 갤러리 · 서비스 · 커뮤니티 · 하단 밴드)
 * + board_latest 스킨(release / community / gallery-card / gallery-service) 스타일
 * 그림자 없음 · 다크모드는 body.dark 변수/오버라이드
 * ============================================================ */
.nh {
  --nh-ink:   #1d211d;
  --nh-acid:  var(--nc-acid, #d7fb55);
  --nh-lav:   #e8e2ff;
  --nh-sky:   #dcecff;
  --nh-peach: #ffe4d8;
  --nh-paper: var(--bg-card, #fffefa);
  --nh-line:  var(--border, #dedfd5);
  --nh-mute:  var(--text-muted, #777c70);
  --nh-text:  var(--text-main, #1d211d);
  letter-spacing: -.035em;
}
html body.dark .nh { --nh-lav: #2b2850; --nh-sky: #1c3050; --nh-peach: #432d28; }
.nh a { color: inherit; text-decoration: none; }
.nh *, .nh *::before, .nh *::after { box-sizing: border-box; }

/* ── 히어로 ── */
.nh-hero { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(300px,.7fr); gap: 24px; padding: 4px 0 38px; }
.nh-hero-main { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; min-height: 370px; padding: 39px 42px 33px; background: var(--nh-ink); color: #fff; border-radius: 4px; }
html body.dark .nh-hero-main { background: #1e293b; }
.nh-hero-main::before { content: attr(data-sym); position: absolute; right: -16px; top: -75px; font-size: 300px; font-weight: 900; letter-spacing: -.13em; line-height: 1; color: rgba(255,255,255,.035); pointer-events: none; }
.nh-hero-main > * { position: relative; }
.nh .nh-kicker { font-size: 10px; font-weight: 850; letter-spacing: .2em; color: #b8c58a; }
.nh-hero h1 { margin: 24px 0 15px; font-size: clamp(38px,4.3vw,61px); line-height: 1.06; letter-spacing: -.09em; font-weight: 900; color: #fff; }
.nh-hero h1 em { font-style: normal; color: var(--nh-acid); }
.nh-hero-copy { max-width: 500px; margin: 0; font-size: 13px; line-height: 1.9; color: #b8bcb1; }
.nh-hero-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-top: 30px; }
.nh-hero-cta { display: flex; flex-wrap: wrap; gap: 8px; }
.nh-btn-acid, .nh-btn-outline { display: inline-flex; align-items: center; gap: 19px; height: 42px; padding: 0 17px; border-radius: 99px; font-size: 11px; font-weight: 850; transition: background .15s, color .15s; }
.nh .nh-btn-acid { background: var(--nh-acid); color: #20231f; }
.nh .nh-btn-acid:hover { background: #fff; }
.nh .nh-btn-outline { border: 1px solid #5d6256; color: #fff; }
.nh .nh-btn-outline:hover { background: rgba(255,255,255,.1); }
.nh .nh-hero-version { text-align: right; font-size: 10px; line-height: 1.7; color: #a9aea2; }
.nh .nh-hero-version strong { display: block; font-size: 24px; letter-spacing: -.06em; color: #fff; }
.nh .nh-hero-version:hover { color: #fff; }

.nh-hero-side { display: grid; grid-template-rows: 1fr 1fr; gap: 14px; }
.nh-feature { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; min-height: 170px; padding: 24px 25px; border-radius: 4px; color: #20231f; transition: transform .2s; }
.nh-feature:hover { transform: translateY(-3px); }
.nh-feature-acid { background: var(--nh-acid); }
.nh-feature-lav { background: var(--nh-lav); }
html body.dark .nh-feature-lav { color: #e8e2ff; }
.nh-feature .nh-mini { font-size: 10px; font-weight: 900; letter-spacing: .17em; opacity: .62; }
.nh-feature h2 { margin: 17px 0 7px; font-size: 24px; line-height: 1.12; letter-spacing: -.07em; font-weight: 900; }
.nh-feature p { margin: 0; font-size: 11px; line-height: 1.7; opacity: .72; }
.nh-feature-arrow { position: absolute; right: 23px; bottom: 22px; font-size: 24px; }
.nh-feature::after { content: ""; position: absolute; width: 135px; height: 135px; right: -43px; top: -43px; border: 1px solid currentColor; border-radius: 50%; opacity: .1; }

/* ── 섹션 머리글 ── */
.nh-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 52px 0 20px; }
.nh-sec-label { margin-bottom: 10px; font-size: 10px; font-weight: 900; letter-spacing: .19em; color: var(--nh-mute); }
.nh-sec-head h2 { margin: 0; font-size: 30px; line-height: 1; letter-spacing: -.075em; font-weight: 900; color: var(--nh-text); }
.nh-sec-head p { margin: 10px 0 0; font-size: 12px; line-height: 1.7; color: var(--nh-mute); }
.nh .nh-more { flex-shrink: 0; padding-bottom: 6px; border-bottom: 1px solid var(--nh-text); font-size: 11px; font-weight: 850; color: var(--nh-text); white-space: nowrap; }
.nh .nh-more:hover { opacity: .6; }

/* ── 최신 소식 (basic/release) ── */
.nh-version-panel { display: grid; grid-template-columns: 1.05fr 1fr 1fr 1fr; background: var(--nh-paper); border: 1px solid var(--nh-line); border-radius: 4px; overflow: hidden; }
.nh-version-intro { padding: 25px 27px; background: var(--nh-acid); color: #20231f; }
.nh-version-intro small { font-size: 10px; font-weight: 900; letter-spacing: .16em; }
.nh-version-intro h3 { margin: 23px 0 11px; font-size: 26px; line-height: 1.12; letter-spacing: -.07em; font-weight: 900; }
.nh-version-intro p { margin: 0; font-size: 11px; line-height: 1.8; color: #4b5530; }
.nh .nh-version-link { display: inline-block; margin-top: 20px; padding-bottom: 5px; border-bottom: 1px solid #8d9c55; font-size: 11px; font-weight: 850; color: #20231f; }
.nh-release-item { display: flex; flex-direction: column; min-height: 215px; padding: 25px 22px; border-right: 1px solid var(--nh-line); min-width: 0; }
.nh-release-item:last-child { border-right: 0; }
.nh-release-tag { font-size: 10px; font-weight: 900; letter-spacing: .12em; color: var(--nh-mute); }
.nh-release-item h4 { margin: 17px 0 9px; font-size: 17px; line-height: 1.35; letter-spacing: -.045em; font-weight: 800; color: var(--nh-text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; word-break: keep-all; }
.nh-release-item p { margin: 0; font-size: 11px; line-height: 1.8; color: var(--nh-mute); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nh .nh-release-item > a { margin-top: auto; padding-top: 17px; font-size: 11px; font-weight: 850; color: var(--nh-text); }
.nh .nh-release-item > a:hover { opacity: .6; }
.nh-release-empty { grid-column: 1 / -1; padding: 40px 20px; text-align: center; font-size: 12px; color: var(--nh-mute); border: 1px solid var(--nh-line); background: var(--nh-paper); border-radius: 4px; }
.nh-version-panel .nh-release-empty { border: 0; border-radius: 0; grid-column: span 3; display: flex; align-items: center; justify-content: center; }

/* ── 확장 갤러리 (gallery/card) ── */
.nh-gal-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 15px; }
.nh-gal-card { display: block; min-width: 0; background: var(--nh-paper); border: 1px solid var(--nh-line); border-radius: 4px; overflow: hidden; transition: transform .2s, border-color .2s; }
.nh-gal-card:hover { transform: translateY(-4px); border-color: var(--nc-line-strong, #a5a99a); }
.nh-gal-art { position: relative; display: flex; align-items: flex-end; height: 190px; padding: 19px; overflow: hidden; background-size: cover; background-position: center; }
.nh-gal-art:not(.has-img)::before, .nh-gal-art:not(.has-img)::after { content: ""; position: absolute; border: 1px solid currentColor; border-radius: 50%; opacity: .16; }
.nh-gal-art::before { width: 190px; height: 190px; right: -36px; top: -73px; }
.nh-gal-art::after { width: 105px; height: 105px; right: 16px; top: 18px; }
.nh-gal-label { position: absolute; left: 19px; top: 18px; z-index: 1; font-size: 10px; font-weight: 900; letter-spacing: .17em; }
.nh-gal-art.has-img .nh-gal-label { padding: 4px 9px; background: var(--nh-acid); color: #20231f; border-radius: 3px; letter-spacing: .1em; left: 14px; top: 14px; }
.nh-gal-art-title { position: relative; z-index: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 28px; line-height: 1.02; letter-spacing: -.09em; font-weight: 900; word-break: keep-all; }
.nh-gal-art-sym { position: absolute; right: 25px; bottom: 22px; font-size: 52px; font-weight: 900; line-height: 1; opacity: .25; }
.nh-art-a { background: #d9f95c; color: #273019; }
.nh-art-b { background: #dceaff; color: #22395c; }
.nh-art-c { background: #e7e0ff; color: #43346c; }
html body.dark .nh-art-b { background: #1c3050; color: #cfe0ff; }
html body.dark .nh-art-c { background: #2b2850; color: #ddd5ff; }
.nh-gal-info { padding: 17px 18px 18px; }
.nh-gal-type { font-size: 10px; font-weight: 900; letter-spacing: .12em; color: var(--nh-mute); text-transform: uppercase; }
.nh-gal-info h3 { margin: 9px 0 7px; font-size: 17px; letter-spacing: -.05em; font-weight: 800; color: var(--nh-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nh-gal-info p { min-height: 3.5em; margin: 0; font-size: 11px; line-height: 1.75; color: var(--nh-mute); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nh-gal-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 15px; padding-top: 12px; border-top: 1px solid var(--nh-line); font-size: 10px; color: var(--nh-mute); }
.nh-gal-meta b { color: var(--nh-text); }

/* ── 서비스 (gallery/service) ── */
.nh-svc-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 15px; }
.nh-svc-card { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; min-height: 250px; padding: 28px; border-radius: 4px; background-size: cover; background-position: center; }
.nh-svc-main { background-color: var(--nh-sky); color: #22395c; }
.nh-svc-sub  { background-color: var(--nh-peach); color: #7a5244; }
html body.dark .nh-svc-main { color: #cfe0ff; }
html body.dark .nh-svc-sub  { color: #ffd9cb; }
.nh-svc-card.has-img { color: #fff; }
.nh-svc-card.has-img::before { content: ""; position: absolute; inset: 0; background: rgba(20,22,19,.58); }
.nh-svc-body, .nh-svc-link { position: relative; z-index: 1; }
.nh-svc-eye { font-size: 10px; font-weight: 900; letter-spacing: .18em; opacity: .65; text-transform: uppercase; }
.nh-svc-card h3 { margin: 16px 0 10px; font-size: 30px; line-height: 1.12; letter-spacing: -.08em; font-weight: 900; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; word-break: keep-all; }
.nh-svc-card p { max-width: 380px; margin: 0; font-size: 12px; line-height: 1.8; opacity: .8; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nh .nh-svc-link { display: inline-flex; align-items: center; gap: 28px; margin-top: 22px; font-size: 11px; font-weight: 900; }
.nh .nh-svc-link:hover { opacity: .65; }
.nh-svc-big { position: absolute; right: 20px; bottom: -37px; font-size: 180px; line-height: 1; font-weight: 900; letter-spacing: -.13em; opacity: .08; pointer-events: none; }

/* ── 커뮤니티 (basic/community) ── */
.nh-com-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 15px; }
.nh-com-grid.nh-com-n2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.nh-com-grid.nh-com-n1 { grid-template-columns: 1fr; }
.nh-com-card { min-width: 0; padding: 21px 22px 14px; background: var(--nh-paper); border: 1px solid var(--nh-line); border-radius: 4px; }
.nh-com-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid var(--nh-line); }
.nh-com-head span { display: block; margin-bottom: 6px; font-size: 9px; font-weight: 800; letter-spacing: .13em; color: var(--nh-mute); }
.nh-com-head h3 { margin: 0; font-size: 17px; letter-spacing: -.055em; font-weight: 800; color: var(--nh-text); }
.nh .nh-com-head a { font-size: 10px; font-weight: 850; color: var(--nh-text); }
.nh .nh-com-head a:hover { opacity: .6; }
.nh-com-list { margin: 0; padding: 4px 0 0; list-style: none; }
.nh-com-list li { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 13px 0; border-bottom: 1px solid var(--nh-line); }
.nh-com-list li:last-child { border-bottom: 0; }
.nh-com-list li a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; line-height: 1.55; font-weight: 700; color: var(--nh-text); }
.nh-com-list li a:hover { text-decoration: underline; }
.nh-com-list li a i { margin-right: 4px; font-size: 10px; color: var(--nh-mute); }
.nh-com-list li a em { margin-left: 4px; font-style: normal; font-size: 11px; font-weight: 800; color: var(--nh-mute); }
.nh-com-list small { font-size: 10px; color: var(--nh-mute); white-space: nowrap; font-variant-numeric: tabular-nums; }
.nh-lb { display: inline-block; margin-right: 5px; padding: 3px 5px; font-size: 9px; font-weight: 900; line-height: 1; border-radius: 2px; vertical-align: 1px; }
.nh-lb-new { background: var(--nh-acid); color: #20231f; }
.nh-com-empty { padding: 34px 0; text-align: center; font-size: 12px; color: var(--nh-mute); }

/* ── 하단 밴드 ── */
.nh-band { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-top: 56px; padding: 32px 34px; background: var(--nh-ink); color: #fff; border-radius: 4px; }
html body.dark .nh-band { background: #1e293b; }
.nh-band small { font-size: 10px; font-weight: 900; letter-spacing: .17em; color: #b6c58b; }
.nh-band h2 { margin: 10px 0 6px; font-size: 26px; letter-spacing: -.07em; font-weight: 900; color: #fff; }
.nh-band p { margin: 0; font-size: 11px; line-height: 1.8; color: #b1b5aa; }
.nh-band-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.nh .nh-band-actions a { padding: 14px 18px; border-radius: 99px; background: var(--nh-acid); color: #20231f; font-size: 11px; font-weight: 850; white-space: nowrap; transition: background .15s; }
.nh .nh-band-actions a:hover { background: #fff; }
.nh .nh-band-actions a + a { background: transparent; border: 1px solid #5d6256; color: #fff; }
.nh .nh-band-actions a + a:hover { background: rgba(255,255,255,.1); }

/* ── 반응형 ── */
@media (max-width: 1000px) {
  .nh-hero { grid-template-columns: 1fr; }
  .nh-hero-main { min-height: 330px; }
  .nh-hero-side { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
  .nh-version-panel { grid-template-columns: repeat(3, 1fr); }
  .nh-version-intro { grid-column: 1 / -1; }
  .nh-release-item { min-height: 190px; }
  .nh-gal-art { height: 160px; }
  .nh-gal-art-title { font-size: 24px; }
  .nh-com-grid { grid-template-columns: 1fr 1fr; }
  .nh-com-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .nh-hero { gap: 12px; padding-bottom: 14px; }
  .nh-hero-main { min-height: 350px; padding: 27px 23px 23px; }
  .nh-hero h1 { margin: 20px 0 13px; font-size: 40px; }
  .nh-hero-copy { font-size: 12px; }
  .nh-hero-bottom { flex-direction: column; align-items: flex-start; margin-top: 25px; }
  .nh .nh-hero-version { text-align: left; }
  .nh .nh-hero-version strong { display: inline; margin-right: 7px; font-size: 18px; }
  .nh-hero-side { gap: 10px; }
  .nh-feature { min-height: 165px; padding: 17px 15px; }
  .nh-feature h2 { margin: 17px 0 7px; font-size: 19px; }
  .nh-feature p { font-size: 10px; }
  .nh-feature-arrow { right: 13px; bottom: 12px; }
  .nh-sec-head { margin: 40px 0 16px; }
  .nh-sec-head h2 { font-size: 25px; }
  .nh-version-panel { grid-template-columns: 1fr 1fr; }
  .nh-version-intro { padding: 22px; }
  .nh-version-intro h3 { margin: 16px 0 9px; font-size: 24px; }
  .nh-release-item { min-height: 190px; padding: 19px 16px; }
  .nh-release-item h4 { margin: 14px 0 8px; font-size: 14px; }
  .nh-release-item p { font-size: 10px; }
  .nh-gal-grid { grid-template-columns: 1fr; gap: 12px; }
  .nh-gal-card { display: grid; grid-template-columns: 42% 1fr; }
  .nh-gal-art { height: auto; min-height: 185px; padding: 13px; }
  .nh-gal-art-title { font-size: 21px; }
  .nh-gal-art-sym { right: 12px; bottom: 12px; font-size: 39px; }
  .nh-gal-info { display: flex; flex-direction: column; justify-content: center; padding: 15px 13px; }
  .nh-gal-info h3 { font-size: 14px; }
  .nh-gal-info p { min-height: 0; font-size: 10px; }
  .nh-svc-grid { grid-template-columns: 1fr; }
  .nh-svc-card { min-height: 220px; padding: 23px; }
  .nh-svc-card h3 { font-size: 26px; }
  .nh-com-grid, .nh-com-grid.nh-com-n2 { grid-template-columns: 1fr; gap: 12px; }
  .nh-com-card { padding: 18px; }
  .nh-band { flex-direction: column; align-items: flex-start; margin-top: 40px; padding: 24px 20px; }
  .nh-band h2 { font-size: 22px; }
}

/* ── 다크모드 : 라임/밝은 배경 위 글자는 항상 잉크색 ── */
html body.dark .nh .nh-version-intro, html body.dark .nh .nh-version-intro *,
html body.dark .nh .nh-feature-acid, html body.dark .nh .nh-feature-acid *,
html body.dark .nh .nh-art-a, html body.dark .nh .nh-art-a *,
html body.dark .nh .nh-btn-acid, html body.dark .nh .nh-btn-acid *,
html body.dark .nh .nh-gal-art.has-img .nh-gal-label,
html body.dark .nh .nh-lb-new,
html body.dark .nh .nh-band-actions a:first-child { color: #20231f !important; }
html body.dark .nh .nh-version-link { border-color: #8d9c55; }
html body.dark .nh .nh-hero-version strong, html body.dark .nh .nh-hero-main h1 { color: #fff; }
html body.dark .nh .nh-hero-main h1 em { color: var(--nh-acid); }
html body.dark .nh .nh-svc-card.has-img { color: #fff; }
