/* ClipAI on top of the shared ClipLabs design system (site.css).
   Only the accent colour and the header width live here; WordPress blocks are styled in wp.css. */

html[data-site="clipai"] {
  --accent: #5b3fd6;
  --accent-hover: #4a31b8;
  --accent-soft: #f0edfc;
  --link: #5236c9;
}
@media (prefers-color-scheme: dark) {
  html[data-site="clipai"]:not([data-theme]) {
    --accent: #a897ff;
    --accent-hover: #bcafff;
    --accent-ink: #140c33;
    --accent-soft: #221c3d;
    --link: #b3a6ff;
  }
}
html[data-site="clipai"][data-theme="dark"] {
  --accent: #a897ff;
  --accent-hover: #bcafff;
  --accent-ink: #140c33;
  --accent-soft: #221c3d;
  --link: #b3a6ff;
}

/* «Ещё» in the header: a button with a small dropdown (assets/clipai.js) */
.nav-more { position: relative; }
.nav-more-btn { display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border: 0; border-radius: var(--radius-sm); background: none; color: var(--ink-2); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }
.nav-more-btn svg { width: 12px; height: 12px; transition: transform .15s; }
.nav-more-btn:hover, .nav-more.is-current .nav-more-btn, .nav-more-btn[aria-expanded="true"] { color: var(--ink); background: var(--bg-alt); }
.nav-more-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-sub { display: none; position: absolute; top: calc(100% + 6px); inset-inline-start: 0; z-index: 30; min-width: 230px; padding: 6px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); box-shadow: 0 12px 28px rgba(15, 20, 30, .12); }
.nav-more-btn[aria-expanded="true"] + .nav-sub { display: grid; }
.main-nav .nav-sub a { padding: 9px 12px; }

/* Seven menu items, «от ClipLabs» and the buttons fit side by side from 1281 px. */
@media (max-width: 1280px) {
  html[data-site="clipai"] .icon-btn.nav-toggle { display: inline-flex; }
  html[data-site="clipai"] .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 16px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 16px 24px rgba(15, 20, 30, .08); }
  html[data-site="clipai"] .nav-open .main-nav { display: flex; }
  html[data-site="clipai"] .main-nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 16px; }
  html[data-site="clipai"] .main-nav a:last-child { border-bottom: 0; }
  html[data-site="clipai"] .header-row { gap: 12px; justify-content: space-between; }
  html[data-site="clipai"] .header-tools { margin-inline-start: auto; }
  /* in the phone menu the «Ещё» items are listed under a small caption */
  html[data-site="clipai"] .nav-more-btn { display: block; width: 100%; padding: 14px 4px 4px; border-radius: 0; background: none; color: var(--muted); font-size: 13px; text-align: start; cursor: default; pointer-events: none; }
  html[data-site="clipai"] .nav-more-btn svg { display: none; }
  html[data-site="clipai"] .nav-sub { display: grid; position: static; min-width: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: none; }
  html[data-site="clipai"] .main-nav .nav-sub a { padding: 12px 4px; }
}
@media (max-width: 560px) {
  html[data-site="clipai"] .header-buy { display: none; }
}


.lang-link span { text-transform: uppercase; }
