/* NVP24 — 뉴스 포털 1차 시안 공통 스타일 (atoreum design/ 규칙 계승) */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");

:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #f1f4f9;
  --line: #e4e8f0;
  --line-2: #d5dbe6;
  --text: #111827;
  --text-2: #4b5563;
  --text-3: #8a93a3;
  --brand: #1747d6;
  --brand-2: #0b2a8f;
  --brand-soft: #e9efff;
  --brand-ink: #1a3fb8;
  --red: #e5293b;
  --red-soft: #fdecee;
  --up: #e5293b;
  --down: #2563eb;
  --mint: #0fb5a0;
  --amber: #f59e0b;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 8px 24px rgba(17, 24, 39, 0.05);
  --wrap: 1280px;
  --font:
    "Pretendard Variable", Pretendard, system-ui, -apple-system,
    "Apple SD Gothic Neo", sans-serif;
}
[data-theme="dark"] {
  --bg: #0d1017;
  --surface: #151a23;
  --surface-2: #1c2230;
  --line: #262d3b;
  --line-2: #323b4d;
  --text: #eef1f6;
  --text-2: #b3bccb;
  --text-3: #7a8497;
  --brand: #5b86ff;
  --brand-2: #3a63e6;
  --brand-soft: #18213a;
  --brand-ink: #9db6ff;
  --red: #ff5a67;
  --red-soft: #3a1a1f;
  --up: #ff5a67;
  --down: #5b9bff;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  color-scheme: light;
}
/* 브라우저 기본 입력 요소(파일 선택 버튼 · 날짜 선택 · 스크롤바 …)도 테마에 맞춘다 */
html[data-theme="dark"] {
  color-scheme: dark;
}
body {
  font-family: var(--font);
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button {
  background: none;
  border: 0;
  cursor: pointer;
}
ul {
  list-style: none;
}
svg.lucide {
  width: 18px;
  height: 18px;
  stroke-width: 1.9;
  flex: none;
}
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}
[hidden] {
  display: none !important;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.clamp1 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.clamp2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── 상단 속보 바 ── */
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
}
.topbar .wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 38px;
}
.breaking {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.breaking .tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--red);
  font-weight: 800;
  flex: none;
}
.breaking .tag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  animation: blink 1.4s infinite;
}
@keyframes blink {
  50% {
    opacity: 0.25;
  }
}
.breaking .tick {
  min-width: 0;
  height: 20px;
  overflow: hidden;
  position: relative;
  flex: 1;
}
.breaking .tick ul {
  transition: transform 0.5s ease;
}
.breaking .tick li {
  height: 20px;
  line-height: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-2);
}
.topbar .date {
  color: var(--text-3);
  flex: none;
}
.util {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
  color: var(--text-2);
}
.util a:hover {
  color: var(--text);
}
.util .on {
  color: var(--brand);
  font-weight: 700;
}
.util .ico {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
}
.util .ico:hover {
  background: var(--surface-2);
}
.util .ico svg.lucide {
  width: 16px;
  height: 16px;
}

/* ── 헤더 ── */
.header {
  background: var(--surface);
}
.header .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 84px;
}
.logo {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: start;
  flex: none;
}
.logo .mark {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
  color: var(--brand-2);
  font-style: italic;
}
.logo .mark b {
  color: var(--brand);
}
[data-theme="dark"] .logo .mark {
  color: #fff;
}
.logo small {
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0;
}
/* 관리자 › 로고 관리의 이미지 로고 (SiteUi::brandLogo — 라이트용 · 다크용 두 장을 함께 출력) — 테마에 맞는 한 장만 */
.logo--on-light,
.logo--on-dark {
  display: block;
  width: auto;
  max-width: 130px;
  object-fit: contain;
}
.logo--on-dark {
  display: none;
}
[data-theme="dark"] .logo--on-dark {
  display: block;
}
[data-theme="dark"] .logo--on-light {
  display: none;
}
.search {
  flex: 1;
  max-width: 560px;
  display: flex;
  align-items: center;
  height: 48px;
  border: 2px solid var(--brand);
  border-radius: 12px;
  background: var(--surface);
  padding: 0 6px 0 18px;
}
.search input {
  flex: 1;
  border: 0;
  outline: 0;
  background: none;
  min-width: 0;
  font-size: 14.5px;
}
.search input::placeholder {
  color: var(--text-3);
}
.search .scope {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13.5px;
  font-weight: 600;
  padding: 0 14px;
  border-left: 1px solid var(--line);
  color: var(--text-2);
}
.search .go {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--brand);
  border-radius: 8px;
}
.search .go:hover {
  background: var(--brand-soft);
}
.hd-cta {
  display: flex;
  gap: 10px;
  margin-left: auto;
  flex: none;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.btn svg.lucide {
  width: 16px;
  height: 16px;
}
.btn-primary {
  background: var(--brand-2);
  color: #fff;
}
.btn-primary:hover {
  background: var(--brand);
}
[data-theme="dark"] .btn-primary {
  background: var(--brand-2);
}
.btn-line {
  border: 1px solid var(--brand);
  color: var(--brand-ink);
  background: var(--brand-soft);
}
.btn-line:hover {
  background: var(--surface);
}
.btn-sm {
  height: 34px;
  padding: 0 14px;
  font-size: 13px;
  border-radius: 8px;
}

/* ── GNB ── */
.gnb {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.gnb .wrap {
  display: flex;
  align-items: center;
  height: 54px;
  gap: 4px;
}
.gnb .all {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  margin-right: 10px;
}
.gnb .all:hover {
  background: var(--surface-2);
}
.gnb nav {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
}
.gnb nav::-webkit-scrollbar {
  display: none;
}
.gnb nav a {
  position: relative;
  padding: 0 14px;
  height: 54px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  color: var(--text);
}
.gnb nav a:hover {
  color: var(--brand);
}
.gnb nav a.on {
  color: var(--brand);
}
.gnb nav a.on::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -1px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--brand);
}
.gnb nav a .live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

/* ── 공통 카드 / 섹션 ── */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.sec-h {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.sec-h h2,
.sec-h h3 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.sec-h h3 {
  font-size: 17px;
}
.sec-h.bar h2,
.sec-h.bar h3 {
  padding-left: 11px;
  position: relative;
}
.sec-h.bar h2::before,
.sec-h.bar h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 3px;
  border-radius: 2px;
  background: var(--brand);
}
.more {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 12.5px;
  color: var(--text-3);
  font-weight: 600;
}
.more:hover {
  color: var(--brand);
}
.more svg.lucide {
  width: 14px;
  height: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 5px;
  font-size: 11.5px;
  font-weight: 800;
  background: var(--brand);
  color: #fff;
  letter-spacing: 0;
  flex: none;
}
.badge.soft {
  background: var(--brand-soft);
  color: var(--brand-ink);
}
.badge.red {
  background: var(--red);
}
.badge.line {
  background: transparent;
  color: var(--brand-ink);
  border: 1px solid var(--brand);
}
.badge.gray {
  background: var(--surface-2);
  color: var(--text-2);
}
.meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-3);
  flex-wrap: wrap;
}
.meta i {
  width: 1px;
  height: 10px;
  background: var(--line-2);
}
.meta .src {
  color: var(--text-2);
  font-weight: 600;
}
.meta .col {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.meta .col svg.lucide {
  width: 13px;
  height: 13px;
}
.meta .auto {
  color: var(--mint);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.meta .auto svg.lucide {
  width: 12px;
  height: 12px;
}

/* 썸네일 자리 — 실제 이미지는 수집기 og:image 로 대체 */
.th {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #1b2540;
  color: #fff;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.th::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--g, linear-gradient(135deg, #0b1f5c, #1747d6));
}
.th::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.35;
  background-image:
    radial-gradient(
      circle at 70% 30%,
      rgba(255, 255, 255, 0.35),
      transparent 40%
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.06) 0 1px,
      transparent 1px 22px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.06) 0 1px,
      transparent 1px 22px
    );
}
.th svg.lucide {
  width: 34%;
  height: 34%;
  max-width: 64px;
  max-height: 64px;
  stroke-width: 1.3;
  opacity: 0.9;
}
.th .lbl {
  position: absolute;
  left: 10px;
  top: 10px;
}
.g-ai {
  --g: linear-gradient(135deg, #04123d, #0d3bb8 60%, #19b4ff);
}
.g-chip {
  --g: linear-gradient(135deg, #1a1206, #8a5b0f 60%, #f6c453);
}
.g-bio {
  --g: linear-gradient(135deg, #062a26, #0c8a74 60%, #5ff0d0);
}
.g-coin {
  --g: linear-gradient(135deg, #2a1300, #c26a00 60%, #ffcb52);
}
.g-city {
  --g: linear-gradient(135deg, #0b1630, #2a4a86 60%, #9ab8ff);
}
.g-red {
  --g: linear-gradient(135deg, #2b0508, #a3111e 60%, #ff5a67);
}
.g-violet {
  --g: linear-gradient(135deg, #160a3a, #5b2bd6 60%, #b79bff);
}
.g-gray {
  --g: linear-gradient(135deg, #111418, #3a4250 60%, #a7b1c2);
}
.g-sec {
  --g: linear-gradient(135deg, #021530, #0a4fa8 60%, #3fd2ff);
}

/* 순위 리스트 */
.rank li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  font-size: 14px;
}
.rank li .n {
  font-weight: 900;
  font-size: 16px;
  color: var(--text);
  text-align: center;
}
.rank li:nth-child(-n + 3) .n {
  color: var(--brand);
}
.rank li a:hover {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.rank .chg {
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.rank .chg.up {
  color: var(--up);
}
.rank .chg.down {
  color: var(--down);
}
.rank .chg.new {
  color: var(--mint);
}

/* 탭 */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
}
.tabs button {
  flex: 1;
  padding: 9px 4px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-3);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tabs button.on {
  color: var(--brand);
  border-color: var(--brand);
  font-weight: 800;
}
.tabs.left button {
  flex: none;
  padding: 9px 12px;
}
.seg {
  display: inline-flex;
  background: var(--surface-2);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}
.seg button {
  padding: 5px 12px;
  font-size: 12.5px;
  border-radius: 6px;
  color: var(--text-2);
  font-weight: 600;
}
.seg button.on {
  background: var(--surface);
  color: var(--brand);
  box-shadow: var(--shadow);
  font-weight: 800;
}

/* 배너형 CTA */
.cta-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 24px;
  background: linear-gradient(135deg, #eaf0ff, #f6f8ff);
  border: 1px solid var(--line);
}
[data-theme="dark"] .cta-card {
  background: linear-gradient(135deg, #18213a, #151a23);
}
.cta-card h4 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.35;
}
.cta-card p {
  font-size: 13px;
  color: var(--text-2);
  margin: 8px 0 16px;
}
.cta-card .art {
  position: absolute;
  right: 14px;
  bottom: 10px;
  width: 96px;
  height: 96px;
  color: var(--brand);
  opacity: 0.22;
}
.cta-card .art svg.lucide {
  width: 100%;
  height: 100%;
  stroke-width: 1;
}

/* ── 서브 페이지 머리 ── */
.page-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(
    70% 160% at 90% 20%,
    #1d5bff 0%,
    #0a1d5c 40%,
    #040a1f 80%
  );
  min-height: 280px;
  padding-top: 30px;
}
.page-hero .wrap {
  position: relative;
  z-index: 1;
  padding-top: 26px;
  padding-bottom: 30px;
}
.page-hero .crumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #a9b8e6;
}
.page-hero .crumb svg.lucide {
  width: 13px;
  height: 13px;
  flex: none;
}
/* 경로 링크 — 아이콘과 글자 간격 (board.css 를 싣지 않는 문의 · 검색 · RSS · 행사 화면도 같게) */
.page-hero .crumb a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.page-hero .crumb a:hover {
  color: #fff;
}
.page-hero h1 {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1.15;
  margin: 12px 0 10px;
}
.page-hero p {
  font-size: 15.5px;
  color: #d2dbf5;
  line-height: 1.6;
}
.page-hero .deco {
  position: absolute;
  /* 본문 폭(--wrap) 안쪽 오른쪽 끝 — 넓은 화면에서 화면 가장자리로 밀려 잘리지 않게 */
  right: max(24px, calc((100% - var(--wrap)) / 2 + 40px));
  top: 50%;
  transform: translateY(-50%);
  width: 150px;
  height: 150px;
  color: #9cc0ff;
  opacity: 0.35;
}
.page-hero .deco svg.lucide {
  width: 100%;
  height: 100%;
  stroke-width: 0.9;
}
.page-hero .hero-search {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  max-width: 640px;
}
.page-hero .hero-search input {
  flex: 1;
  min-width: 0;
  height: 48px;
  border-radius: 10px;
  border: 0;
  padding: 0 16px;
  font-size: 15px;
  outline: 0;
  background: #fff;
  color: #111827;
}
.page-hero .hero-search .btn {
  height: 48px;
  background: var(--brand);
  color: #fff;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 13px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
}
.chip:hover {
  border-color: var(--brand);
  color: var(--brand-ink);
}
.chip.on {
  background: var(--brand-2);
  border-color: var(--brand-2);
  color: #fff;
}
.chip svg.lucide {
  width: 14px;
  height: 14px;
}

/* ── 푸터 ── 한 덩어리: 왼쪽 로고 / 오른쪽 메뉴 한 줄 · 고객센터 · 회사 · 언론 등록 정보 */
.footer {
  margin-top: 56px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-3);
}
.footer .ft {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  padding-top: 32px;
  padding-bottom: 40px;
}
.footer .ft-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-bottom: 14px;
  font-size: 13.5px;
}
.footer .ft-menu a {
  color: var(--text-2);
  font-weight: 700;
}
.footer .ft-menu a.em {
  color: var(--brand);
  font-weight: 800;
}
.footer .ft-menu a:hover {
  color: var(--brand);
}
.footer .ft-cs a:hover {
  color: var(--brand);
}
.footer .logo {
  flex-shrink: 0;
}
.footer .logo .mark {
  font-size: 24px;
}
.footer .ft-info {
  flex: 1;
  min-width: 0;
}
.footer p {
  line-height: 1.75;
}
.footer .ft-line {
  margin-bottom: 2px;
}
.footer .ft-line span + span::before {
  content: "|";
  margin: 0 9px;
  color: var(--line-2);
}
.footer .ft-line em {
  font-style: normal;
  color: var(--text-2);
  font-weight: 600;
}
.footer .ft-open {
  margin-top: 14px;
}
.footer .ft-open b {
  color: var(--text-2);
}
.footer .ft-open .ft-line {
  display: block;
}
.footer .ft-open a:hover {
  color: var(--brand);
}
.footer .ft-note {
  margin-top: 10px;
}
.footer .ft-extra {
  margin-top: 10px;
}
.footer .ft-copy {
  margin-top: 14px;
  color: var(--text-2);
  font-weight: 600;
}

/* ── 반응형 공통 ── */
@media (max-width: 1080px) {
  .hd-cta .btn-line {
    display: none;
  }
}
@media (max-width: 760px) {
  .wrap {
    padding: 0 16px;
  }
  .topbar .date,
  .util a:not(.ico) {
    display: none;
  }
  .header .wrap {
    height: auto;
    padding-top: 14px;
    padding-bottom: 14px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .search {
    order: 3;
    max-width: none;
    flex-basis: 100%;
    height: 44px;
  }
  .search .scope {
    display: none;
  }
  .hd-cta .btn {
    height: 36px;
    padding: 0 12px;
    font-size: 13px;
  }
  .logo .mark {
    font-size: 26px;
  }
  .gnb .wrap {
    height: 48px;
  }
  .gnb nav a {
    height: 48px;
    padding: 0 10px;
    font-size: 14px;
  }
  .footer .ft {
    flex-direction: column;
    gap: 18px;
  }
}

/* ── 실서비스 보충 (시안에 없는 상태) ── */
.breaking .tick a:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.util .ico .icon-sun {
  display: none;
}
[data-theme="dark"] .util .ico .icon-sun {
  display: inline;
}
[data-theme="dark"] .util .ico .icon-moon {
  display: none;
}
.util .ico svg {
  pointer-events: none;
}
.gnb .all[aria-expanded="true"] {
  background: var(--surface-2);
  color: var(--brand);
}
.gnb.open nav {
  flex-wrap: wrap;
  overflow: visible;
}
.gnb.open .wrap {
  height: auto;
  min-height: 54px;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--brand-2);
  color: #fff;
}
.skip-link:focus {
  top: 8px;
}

/* ── 모바일 전체 메뉴 — 왼쪽 드로어 (gnb.php #nv-drawer · nvp24.js). PC 에서는 쓰지 않는다 ── */
.nv-drawer {
  position: fixed;
  inset: 0;
  z-index: 900;
}
.nv-drawer__bg {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  opacity: 0;
  transition: opacity 0.22s ease;
}
.nv-drawer__panel {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(320px, 86vw);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  color: var(--text);
  box-shadow: 8px 0 32px rgba(15, 23, 42, 0.18);
  transform: translateX(-100%);
  transition: transform 0.24s ease;
  outline: 0;
  font-family: var(--font);
}
.nv-drawer.is-open .nv-drawer__bg {
  opacity: 1;
}
.nv-drawer.is-open .nv-drawer__panel {
  transform: none;
}
.nv-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 12px 0 20px;
  border-bottom: 1px solid var(--line);
  flex: none;
}
.nv-drawer__logo {
  font-size: 24px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.06em;
  color: var(--brand-2);
  line-height: 1;
}
.nv-drawer__logo b {
  color: var(--brand);
}
.nv-drawer__logo img {
  height: 28px;
}
[data-theme="dark"] .nv-drawer__logo {
  color: #fff;
}
.nv-drawer__x {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--text-2);
}
.nv-drawer__x:hover {
  background: var(--surface-2);
}
.nv-drawer__me {
  display: flex;
  gap: 8px;
  padding: 14px 20px;
  border-bottom: 8px solid var(--bg);
  flex: none;
}
.nv-drawer__me .btn {
  flex: 1;
  height: 38px;
}
.nv-drawer .btn-ghost {
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--text);
}
.nv-drawer__nav {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}
.nv-drawer__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nv-drawer__nav > ul > li {
  border-bottom: 1px solid var(--line);
}
.nv-drawer__nav .row {
  display: flex;
  align-items: center;
}
.nv-drawer__nav .row > a {
  flex: 1;
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 0 20px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text);
}
.nv-drawer__nav li.on > .row > a {
  color: var(--brand);
}
.nv-drawer__nav .tg {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  color: var(--text-3);
}
.nv-drawer__nav .tg svg {
  transition: transform 0.2s;
}
.nv-drawer__nav .tg[aria-expanded="true"] svg {
  transform: rotate(180deg);
  color: var(--brand);
}
.nv-drawer__nav .sub {
  padding: 4px 0 10px;
  background: var(--surface-2);
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.nv-drawer__nav .sub[hidden] {
  display: none;
}
.nv-drawer__nav .sub a {
  display: block;
  padding: 9px 12px 9px 28px;
  font-size: 14px;
  color: var(--text-2);
}
.nv-drawer__nav .sub a.on {
  color: var(--brand);
  font-weight: 700;
}
.nv-drawer__foot {
  flex: none;
  padding: 14px 20px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
}
.nv-drawer__foot .btn {
  width: 100%;
  height: 44px;
}
.nv-drawer__foot .links {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-2);
}
.nv-drawer__foot .links button {
  margin-left: auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.nv-drawer__foot .links .icon-sun {
  display: none;
}
[data-theme="dark"] .nv-drawer__foot .links .icon-sun {
  display: inline;
}
[data-theme="dark"] .nv-drawer__foot .links .icon-moon {
  display: none;
}
html.nv-drawer-open {
  overflow: hidden;
}
@media (min-width: 761px) {
  .nv-drawer {
    display: none !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nv-drawer__bg,
  .nv-drawer__panel {
    transition: none;
  }
}
