:root {
  --qla-notes-ink: #04090a;
  --qla-notes-teal: #0b3532;
  --qla-notes-gold: #bd961c;
  --qla-notes-gold-soft: #d3b34e;
  --qla-notes-cream: #f5f1e8;
  --qla-notes-muted: #aeb7b2;
  --qla-notes-gap: 22px;
}

.qla-field-notes-carousel {
  position: relative;
  width: 100%;
}

.qla-notes-controls {
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) auto;
  gap: 18px 28px;
  align-items: center;
  margin: 20px 0 30px;
  padding: 18px 20px;
  color: var(--qla-notes-cream);
  background:
    radial-gradient(circle at 85% 0%, rgba(20, 83, 77, 0.42), transparent 20rem),
    rgba(4, 12, 12, 0.96);
  border: 1px solid rgba(211, 179, 78, 0.35);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.qla-notes-range {
  display: flex;
  gap: 8px;
  align-items: baseline;
  white-space: nowrap;
}

.qla-notes-range-label,
.qla-notes-range-total {
  color: #bac4be;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.qla-notes-range-value {
  color: var(--qla-notes-cream);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 12px rgba(255, 255, 255, 0.12);
}

.qla-notes-progress {
  height: 2px;
  overflow: hidden;
  background: rgba(245, 241, 232, 0.15);
}

.qla-notes-progress-fill {
  display: block;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, var(--qla-notes-gold), var(--qla-notes-gold-soft));
  transition: width 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.qla-notes-arrows {
  display: flex;
  gap: 10px;
}

.qla-notes-arrow {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin: 0;
  padding: 0 16px;
  color: var(--qla-notes-cream);
  background: transparent;
  border: 1px solid rgba(211, 179, 78, 0.6);
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.qla-notes-arrow:hover,
.qla-notes-arrow:focus-visible {
  color: var(--qla-notes-ink);
  background: var(--qla-notes-gold-soft);
  border-color: var(--qla-notes-gold-soft);
  transform: translateY(-1px);
}

.qla-notes-arrow:disabled {
  opacity: 0.28;
  cursor: not-allowed;
  transform: none;
}

.qla-notes-arrow:focus-visible,
.qla-notes-dot:focus-visible {
  outline: 2px solid var(--qla-notes-cream);
  outline-offset: 3px;
}

.qla-notes-dots {
  display: flex;
  grid-column: 1 / -1;
  gap: 8px;
}

.qla-notes-dot {
  position: relative;
  flex: 1 1 0;
  min-height: 46px;
  padding: 0;
  color: #c3cbc5;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 0;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.qla-notes-dot::after {
  position: absolute;
  right: -1px;
  bottom: -1px;
  left: -1px;
  height: 2px;
  content: '';
  background: transparent;
}

.qla-notes-dot:hover,
.qla-notes-dot.is-active {
  color: var(--qla-notes-cream);
  background: rgba(189, 150, 28, 0.18);
  border-color: rgba(211, 179, 78, 0.78);
  box-shadow: inset 0 0 0 1px rgba(211, 179, 78, 0.16), 0 7px 18px rgba(0, 0, 0, 0.18);
}

.qla-notes-dot.is-active {
  font-size: 17px;
}

.qla-notes-dot.is-active::after {
  background: var(--qla-notes-gold-soft);
}

.qla-notes-viewport {
  overflow: hidden;
  width: 100%;
}

.qla-notes-track.et_pb_posts.et_grid_module {
  display: flex !important;
  gap: var(--qla-notes-gap);
  align-items: stretch;
  width: 100% !important;
  margin: 0 !important;
  will-change: transform;
  transition: transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.qla-notes-track.et_pb_posts.et_grid_module::after {
  display: none;
}

.qla-notes-track > article.et_pb_post {
  float: none !important;
  flex: 0 0 calc((100% - (3 * var(--qla-notes-gap))) / 4);
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  visibility: hidden;
  opacity: 0.22;
  transition: opacity 240ms ease, visibility 0s linear 620ms, border-color 180ms ease, transform 180ms ease;
}

.qla-notes-track > article.et_pb_post.is-visible {
  visibility: visible;
  opacity: 1;
  transition-delay: 100ms, 0s, 0s, 0s;
}

.qla-notes-track > article.et_pb_post.is-visible:hover {
  border-color: rgba(211, 179, 78, 0.7) !important;
  transform: translateY(-4px);
}

.qla-field-notes-carousel .pagination:empty {
  display: none;
}

.qla-notes-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.qla-reduced-motion .qla-notes-track,
.qla-reduced-motion .qla-notes-progress-fill,
.qla-reduced-motion .qla-notes-track > article.et_pb_post {
  transition: none !important;
}

@media (max-width: 979px) {
  .qla-notes-track > article.et_pb_post {
    flex-basis: calc((100% - var(--qla-notes-gap)) / 2);
  }
}

@media (max-width: 700px) {
  .qla-notes-controls {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px;
  }

  .qla-notes-progress,
  .qla-notes-arrows,
  .qla-notes-dots {
    grid-column: 1;
  }

  .qla-notes-arrows {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .qla-notes-arrow {
    width: 100%;
    font-size: 12px;
  }

  .qla-notes-dot {
    min-height: 42px;
    font-size: 14px;
  }

  .qla-notes-dot.is-active {
    font-size: 15px;
  }
}

@media (max-width: 599px) {
  .qla-notes-track > article.et_pb_post {
    flex-basis: 100%;
  }
}
