.nov-mega-root {
  --menu-bg: #fff;
  --menu-surface: #fff7ed;
  --text: #111;
  --muted: #6b7280;
  --accent: #f59e0b;
  --tab-bg: #f3f4f6;
  --tab-hover: #e5e7eb;
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  --radius: 16px;
  --col-tabs: 280px;
  --maxw: min(1400px, 96vw);
}

.nov-mega {
  position: relative;
}
.nov-top {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
}
.nov-top-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
}
.nov-top-link:hover {
  background: var(--tab-bg);
}
.nov-dot {
  width: 0.45rem;
  height: 0.45rem;
  background: var(--accent);
  border-radius: 999px;
  display: inline-block;
}

.nov-has-mega {
  position: relative;
}
.nov-drop {
  position: absolute;
  inset-inline-start: 0;
  top: 100%;
  inline-size: 62vw;
  display: block;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  z-index: 60;
}
.nov-ready .nov-has-mega:hover > .nov-drop,
.nov-ready .nov-has-mega:focus-within > .nov-drop {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s;
}
.nov-preload .nov-drop {
  transition: none !important;
}

.nov-surface {
  background: var(--menu-surface);
  box-shadow: var(--shadow);
  padding: 14px 0;
  border-radius: var(--radius);
}
.nov-inner {
  width: 100%;
  margin: auto;
  display: flex;
  background: var(--menu-bg);
  overflow: hidden;
}

.nov-panels {
  position: relative;
  height: 440px;
  padding: 24px 28px;
  width: calc(100% - 15%);
}
.nov-panel {
  display: none;
  position: absolute;
  inset: 0;
  padding: 24px 28px;
  overflow: auto;
}
.nov-panel.nov-active {
  display: block;
}
.nov-title {
  font-size: 18px;
  margin: 0 0 12px;
}

.nov-tabs {
  background: #fff;
  border-inline-start: 1px solid #eee;
  width: 15%;
}

.nov-tabs-title {
  font-size: 13px;
  color: var(--muted);
  margin: 14px 16px;
}
.nov-tab {
  display: block;
  width: 100%;
  text-align: start;
  padding: 16px 18px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nov-tab:hover {
  background: var(--tab-hover);
}
.nov-tab[aria-selected="true"] {
  background: var(--tab-bg);
  position: relative;
}
.nov-tab[aria-selected="true"]::before {
  content: "";
  position: absolute;
  inset-inline-start: -3px;
  inset-block: 0;
  width: 3px;
  background: var(--accent);
}

.nov-grid {
  display: grid;
  gap: 16px;
}
.nov-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
.nov-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.nov-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.nov-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.nov-list {
  display: grid;
  gap: 10px;
}

.nov-parent {
  background: #f9fafb;
  border-radius: 12px;
  padding: 8px;
  transition: background-color 0.18s ease;
}
.nov-term-link:hover {
  background: #eef2ff;
}

.nov-term-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  background: transparent;
}
.nov-parent .nov-term-link {
  font-weight: 700;
}

.nov-children {
  display: grid;
  gap: 6px;
  margin: 6px 4px 2px;
}
.nov-term-thumb {
  inline-size: 22px;
  block-size: 22px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
}

.nov-tag-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #f7f7f7;
  border-radius: 999px;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.18s ease;
}
.nov-tag-chip:hover {
  background: #eef2ff;
}

@media (max-width: 960px) {
  .nov-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "tabs"
      "panels";
  }
  .nov-tabs {
    border-inline-start: none;
    border-block-end: 1px solid #eee;
    display: flex;
    overflow: auto;
  }
  .nov-tab {
    white-space: nowrap;
  }
  .nov-panel {
    position: relative;
    inset: auto;
  }
}
