/*
Theme Name: Nika theme | Copilot
Theme URI: 
Description: Nika theme | Copilot
Version: 1.0
Author: Eugene Cilliers
*/

/* Replace the repeated inline source logo with one user-swappable brand asset. */
.logo svg {
  display: none;
}

.logo a::before {
  content: "";
  display: block;
  width: 150px;
  aspect-ratio: 212 / 47;
  background: url("/wp-content/themes/copilot/img/num12-logo.svg") center / contain no-repeat;
}

@media (min-width: 768px) {
  .logo a::before {
    width: 212px;
  }
}

/* Notes: a floating Wiki card expands into a full-screen frosted archive. */
.note-preview {
  cursor: pointer;
  transition: none;
}

.note-preview:hover,
.note-preview:focus-visible {
  outline: none;
}

.note-preview .clip-shape,
.note-preview:hover .clip-shape,
.note-preview:focus-visible .clip-shape {
  background: rgba(5, 7, 14, .72) !important;
  -webkit-backdrop-filter: blur(22px) !important;
  backdrop-filter: blur(22px) !important;
}

.note-preview:hover .note-preview-action,
.note-preview:focus-visible .note-preview-action {
  text-decoration: underline;
  text-underline-offset: .35em;
}

.notes-ambient-title {
  position: relative;
  z-index: 3 !important;
  pointer-events: none;
}

.notes-ambient-title h2 {
  position: relative;
  z-index: 3;
  text-shadow: 0 2px 18px rgba(0, 0, 20, .45);
}

.note-preview-action {
  margin: 2rem 0 0;
  color: var(--clip-border-color);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .13em;
}

.notes-card-stage {
  padding: 10vh 0 34vh;
}

.notes-card-list {
  display: flex;
  flex-direction: column;
  gap: clamp(120px, 24vh, 300px);
}

.notes-card-list .note-preview {
  width: min(440px, calc(100vw - 48px));
  animation: note-float 7s ease-in-out infinite;
}

.notes-card-list .note-card-left { align-self: flex-start; }
.notes-card-list .note-card-right { align-self: flex-end; animation-delay: -3.5s; }
.notes-loading { text-align: center; letter-spacing: .12em; opacity: .7; }

@keyframes note-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -18px; }
}

.note-reader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  color: #fff;
  background: rgba(4, 10, 15, .72);
  -webkit-backdrop-filter: blur(28px) saturate(.7);
  backdrop-filter: blur(28px) saturate(.7);
  opacity: 0;
  visibility: hidden;
  transform: scale(.82) translateY(8vh);
  transform-origin: 36% 58%;
  transition: opacity .45s ease, transform .65s cubic-bezier(.22, 1, .36, 1), visibility .65s;
  overflow: hidden;
  overscroll-behavior: none;
}

.note-reader.is-open {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateY(0);
}

.note-reader-open,
.note-reader-open body {
  overflow: hidden;
}

.note-reader-bar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  min-height: 76px;
  padding: 20px clamp(20px, 4vw, 64px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid rgba(131, 239, 255, .45);
  background: rgba(0, 8, 12, .22);
  font-size: .75rem;
  letter-spacing: .1em;
}

.note-reader button {
  color: inherit;
  background: none;
  border: 0;
  font: inherit;
}

.note-reader-back,
.note-reader-close {
  cursor: pointer;
  padding: .65rem 0;
}

.note-reader-back { justify-self: start; }
.note-reader-close { justify-self: end; }
.note-reader-path { color: #83efff; text-align: center; }

.note-reader-scroll {
  position: absolute;
  inset: 0;
  height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 132px clamp(24px, 8vw, 150px) 100px;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.note-document {
  display: none;
  width: min(820px, 100%);
  margin: 0 auto;
  user-select: text;
  animation: note-in .45s ease both;
}

.note-document.is-active { display: block; }
.note-document h1 { margin: .2em 0 .15em; font-size: clamp(4rem, 10vw, 9rem); color: #fff; }
.note-document h2 { margin: 0 0 2rem; font-size: clamp(1.55rem, 3vw, 2.7rem); color: #fff; }
.note-document h3 { margin: 3rem 0 1rem; font-size: clamp(1.25rem, 2vw, 1.8rem); color: #83efff; }
.note-document p,
.note-document li { font-size: clamp(1rem, 1.4vw, 1.22rem); line-height: 1.8; }
.note-kicker,
.note-meta,
.note-demo-label { font-size: .72rem !important; letter-spacing: .13em; color: #83efff; }
.note-lead { margin: 3rem 0; font-size: clamp(1.25rem, 2vw, 1.8rem) !important; line-height: 1.55 !important; opacity: .82; }
.note-demo-label { margin-top: 4rem; opacity: .65; }
.note-document blockquote { margin: 2rem 0; padding: 1.5rem 2rem; border-left: 2px solid #83efff; background: rgba(255,255,255,.06); }
.note-document a { color: #83efff; }
.note-document pre { padding: 1.5rem; overflow-x: auto; background: rgba(0,0,0,.35); border: 1px solid rgba(131,239,255,.25); }
.note-document hr { margin: 3rem 0; border-color: rgba(131,239,255,.3); }
.note-feishu-content { margin-top: 3rem; }
.note-inline-link { display: inline; padding: 0; cursor: pointer; color: #83efff !important; text-align: left; text-decoration: underline; text-underline-offset: .25em; }
.note-media-placeholder { min-height: 180px; display: grid; place-items: center; border: 1px solid rgba(131,239,255,.3); color: #83efff; font-size: .72rem; letter-spacing: .12em; }

.note-link-list { display: grid; border-top: 1px solid rgba(131,239,255,.35); }
.note-link-list a {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 1rem;
  align-items: center;
  width: 100%;
  padding: 1.45rem 0;
  cursor: pointer;
  text-align: left;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(131,239,255,.35);
  transition: color .25s ease, padding .25s ease;
}
.note-link-list a:hover { color: #83efff; padding-left: .75rem; }
.note-link-list span,
.note-link-list em { font-size: .68rem; letter-spacing: .1em; font-style: normal; opacity: .7; }

@keyframes note-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 767px) {
  .note-reader-bar { grid-template-columns: 1fr 1fr; }
  .note-reader-path { display: none; }
  .note-reader-scroll { padding-top: 112px; }
  .note-link-list button { grid-template-columns: 30px 1fr; }
  .note-link-list em { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .note-reader,
  .note-document,
  .note-preview { transition: none; animation: none; }
}
