/* ABS Nexora — site-wide widgets (rendered by site-widgets.js) */

.nxw-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Dock ---------- */

.nxw-dock {
  --nxw-lift: 0px;
  position: fixed;
  right: calc(1.1rem + env(safe-area-inset-right, 0px));
  bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px));
  z-index: 950;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.7rem;
  transform: translateY(calc(-1 * var(--nxw-lift)));
  transition: transform 0.18s ease-out;
  font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  pointer-events: none;
}

.nxw-dock > * {
  pointer-events: auto;
}

.nxw-top {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-right: 0.3rem;
  padding: 0;
  color: #f3efe6;
  background: linear-gradient(150deg, #163a5f, #0c1f36 70%);
  border: 1px solid rgba(197, 160, 89, 0.55);
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(0, 20, 40, 0.28);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.9);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s, border-color 0.18s;
}

.nxw-top svg {
  width: 1.15rem;
  height: 1.15rem;
}

.nxw-top:hover {
  border-color: #c5a059;
  color: #fff;
}

.nxw-dock.has-top .nxw-top {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s, border-color 0.18s;
}

.nxw-dock.is-chat-open .nxw-top {
  opacity: 0;
  visibility: hidden;
}

.nxw-top:focus-visible,
.nxw-wa-fab:focus-visible,
.nxw-wa-close:focus-visible,
.nxw-wa-chip:focus-visible,
.nxw-wa-send:focus-visible,
.nxw-qs-esc:focus-visible,
.nxw-qs-clear:focus-visible,
.nxw-news-btn:focus-visible {
  outline: 2px solid #c5a059;
  outline-offset: 3px;
}

/* ---------- WhatsApp ---------- */

.nxw-wa {
  position: relative;
  animation: nxw-pop 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.25) 0.2s both;
}

.nxw-wa-fab {
  position: relative;
  display: grid;
  place-items: center;
  width: 3.6rem;
  height: 3.6rem;
  padding: 0;
  color: #fff;
  background: radial-gradient(circle at 30% 25%, #3ee07d, #25d366 55%, #1ebe5b);
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(18, 140, 70, 0.38), 0 0 0 1px rgba(197, 160, 89, 0.45);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nxw-wa-fab svg {
  width: 1.9rem;
  height: 1.9rem;
}

.nxw-wa-fab:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 16px 34px rgba(18, 140, 70, 0.45), 0 0 0 1px rgba(197, 160, 89, 0.6);
}

.nxw-wa-fab[aria-expanded="true"] {
  background: radial-gradient(circle at 30% 25%, #1f4a73, #0c1f36);
  border-color: rgba(197, 160, 89, 0.75);
}

.nxw-wa-fab.is-pulsing::before,
.nxw-wa-fab.is-pulsing::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.65);
  animation: nxw-ring 1.6s ease-out 3;
  pointer-events: none;
}

.nxw-wa-fab.is-pulsing::after {
  animation-delay: 0.5s;
}

.nxw-wa-tip {
  position: absolute;
  right: calc(100% + 0.75rem);
  top: 50%;
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #f3efe6;
  white-space: nowrap;
  background: #0c1f36;
  border: 1px solid rgba(197, 160, 89, 0.45);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(0, 20, 40, 0.22);
  opacity: 0;
  transform: translate(6px, -50%);
  transition: opacity 0.18s, transform 0.18s;
  pointer-events: none;
}

.nxw-wa-fab.is-pulsing .nxw-wa-tip,
.nxw-wa-fab:focus-visible .nxw-wa-tip {
  opacity: 1;
  transform: translate(0, -50%);
}

@media (hover: hover) {
  .nxw-wa-fab:hover .nxw-wa-tip {
    opacity: 1;
    transform: translate(0, -50%);
  }
}

.nxw-wa-fab[aria-expanded="true"] .nxw-wa-tip {
  display: none;
}

.nxw-wa-card {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.85rem);
  display: flex;
  flex-direction: column;
  width: min(23rem, calc(100vw - 2.2rem - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
  max-height: calc(100vh - 8rem - var(--nxw-lift, 0px));
  max-height: calc(100dvh - 8rem - var(--nxw-lift, 0px));
  overflow: hidden;
  color: #1f2d3d;
  background: #fcfbf7;
  border: 1px solid rgba(197, 160, 89, 0.45);
  border-radius: 20px;
  box-shadow: 0 30px 70px rgba(0, 20, 40, 0.32), 0 2px 6px rgba(0, 20, 40, 0.08);
  transform-origin: bottom right;
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  transition: opacity 0.2s ease, transform 0.22s cubic-bezier(0.2, 0.8, 0.25, 1);
}

.nxw-wa-card:focus {
  outline: none;
}

.nxw-wa-card.is-in {
  opacity: 1;
  transform: none;
}

.nxw-wa-card[hidden] {
  display: none;
}

.nxw-wa-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.05rem 1rem 1.05rem 1.1rem;
  color: #f3efe6;
  background:
    radial-gradient(ellipse 80% 120% at 100% 0%, rgba(197, 160, 89, 0.28), transparent 60%),
    linear-gradient(140deg, #0c1f36, #163a5f);
  border-bottom: 1px solid rgba(197, 160, 89, 0.55);
}

.nxw-wa-avatar {
  position: relative;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #001f3f, #0c1f36);
  box-shadow: 0 0 0 2px #c5a059, 0 0 0 4px rgba(197, 160, 89, 0.25);
}

.nxw-wa-avatar span {
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #e8d5a8;
}

.nxw-wa-online {
  position: absolute;
  right: 0;
  bottom: 1px;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: #25d366;
  border: 2px solid #0c1f36;
}

.nxw-wa.is-pending .nxw-wa-online {
  background: #c5a059;
}

.nxw-wa-id {
  flex: 1;
  min-width: 0;
}

.nxw-wa-kicker {
  margin: 0 0 0.1rem;
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d9b872;
}

.nxw-wa-title {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  font-variant-numeric: lining-nums;
}

.nxw-wa-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  color: rgba(243, 239, 230, 0.78);
}

.nxw-wa-dot {
  flex-shrink: 0;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.2);
}

.nxw-wa.is-pending .nxw-wa-dot {
  background: #c5a059;
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.22);
}

.nxw-wa-close {
  align-self: flex-start;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.1rem;
  height: 2.1rem;
  padding: 0;
  color: #f3efe6;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(243, 239, 230, 0.2);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.18s;
}

.nxw-wa-close:hover {
  background: rgba(255, 255, 255, 0.16);
}

.nxw-wa-close svg {
  width: 1rem;
  height: 1rem;
}

.nxw-wa-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.1rem 1.05rem 0.9rem;
  background:
    radial-gradient(circle at 1px 1px, rgba(154, 122, 58, 0.12) 1px, transparent 0) 0 0 / 16px 16px,
    #f3efe6;
}

.nxw-wa-bubble {
  position: relative;
  max-width: 92%;
  padding: 0.75rem 0.9rem 0.55rem;
  background: #fff;
  border: 1px solid #ebe4d6;
  border-radius: 4px 16px 16px 16px;
  box-shadow: 0 2px 8px rgba(0, 31, 63, 0.06);
  animation: nxw-bubble 0.35s ease-out 0.12s both;
}

.nxw-wa-bubble p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #1f2d3d;
}

.nxw-wa-time {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #9a7a3a;
}

.nxw-wa-soon {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin: 0.85rem 0 0;
  padding: 0.7rem 0.85rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #5b4a24;
  background: linear-gradient(135deg, rgba(197, 160, 89, 0.18), rgba(197, 160, 89, 0.08));
  border: 1px dashed rgba(154, 122, 58, 0.6);
  border-radius: 12px;
}

.nxw-wa-soon strong {
  font-size: 0.86rem;
  color: #0c1f36;
}

.nxw-wa-soon a {
  color: #0c1f36;
  font-weight: 600;
}

.nxw-wa-label {
  margin: 1rem 0 0.5rem;
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7a6a4a;
}

.nxw-wa-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.nxw-wa-chip {
  padding: 0.45rem 0.8rem;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  color: #0c1f36;
  background: #fff;
  border: 1px solid rgba(197, 160, 89, 0.55);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.16s, border-color 0.16s, color 0.16s, transform 0.16s;
}

.nxw-wa-chip:hover {
  background: #fbf6ea;
  border-color: #c5a059;
  transform: translateY(-1px);
}

.nxw-wa-chip[aria-pressed="true"] {
  color: #fff;
  background: #163a5f;
  border-color: #163a5f;
}

.nxw-wa-compose {
  display: flex;
  align-items: flex-end;
  gap: 0.55rem;
  padding: 0.7rem 0.75rem 0.55rem 0.9rem;
  background: #fff;
  border-top: 1px solid #ebe4d6;
}

.nxw-wa-input {
  flex: 1;
  min-width: 0;
  min-height: 2.6rem;
  max-height: 7.5rem;
  padding: 0.6rem 0.85rem;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.35;
  color: #1f2d3d;
  background: #faf7f0;
  border: 1px solid #e3ddd0;
  border-radius: 14px;
  resize: none;
}

.nxw-wa-input:focus {
  outline: none;
  border-color: #c5a059;
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.2);
  background: #fff;
}

.nxw-wa-send {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  color: #fff;
  background: #25d366;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 6px 14px rgba(18, 140, 70, 0.3);
  cursor: pointer;
  transition: transform 0.16s, background 0.16s;
}

.nxw-wa-send:hover:not(:disabled) {
  transform: scale(1.06);
  background: #1ebe5b;
}

.nxw-wa-send:disabled {
  color: #8a96a3;
  background: #e7e3da;
  box-shadow: none;
  cursor: not-allowed;
}

.nxw-wa-send svg {
  width: 1.2rem;
  height: 1.2rem;
}

.nxw-wa-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0 0.75rem 0.65rem;
  font-size: 0.7rem;
  color: #7a8796;
  background: #fff;
}

.nxw-wa-foot svg {
  width: 0.85rem;
  height: 0.85rem;
  color: #25d366;
}

/* ---------- Quick search ---------- */

html.nxw-lock,
html.nxw-lock body {
  overflow: hidden;
}

.nxw-qs {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: max(9vh, 1rem) 1rem 1rem;
  font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.nxw-qs[hidden] {
  display: none;
}

.nxw-qs-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 16, 32, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.nxw-qs.is-in .nxw-qs-backdrop {
  opacity: 1;
}

.nxw-qs-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(42rem, 100%);
  max-height: min(38rem, calc(100vh - 12vh - 1rem));
  max-height: min(38rem, calc(100dvh - 12vh - 1rem));
  overflow: hidden;
  background: #fcfbf7;
  border: 1px solid rgba(197, 160, 89, 0.5);
  border-radius: 18px;
  box-shadow: 0 40px 90px rgba(0, 16, 32, 0.4);
  opacity: 0;
  transform: translateY(-8px) scale(0.985);
  transition: opacity 0.2s ease, transform 0.22s cubic-bezier(0.2, 0.8, 0.25, 1);
}

.nxw-qs.is-in .nxw-qs-panel {
  opacity: 1;
  transform: none;
}

.nxw-qs-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1rem 0.95rem 1.15rem;
  background: #fff;
  border-bottom: 1px solid #ebe4d6;
}

.nxw-qs-bar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #c5a059 30%, #c5a059 70%, transparent);
  opacity: 0;
  transition: opacity 0.2s;
}

.nxw-qs.is-busy .nxw-qs-bar::after {
  opacity: 1;
  animation: nxw-shimmer 1.1s ease-in-out infinite;
}

.nxw-qs-bar > svg {
  flex-shrink: 0;
  width: 1.3rem;
  height: 1.3rem;
  color: #9a7a3a;
}

.nxw-qs-input {
  flex: 1;
  min-width: 0;
  padding: 0.3rem 0;
  font: inherit;
  font-size: 1.12rem;
  color: #0c1f36;
  background: transparent;
  border: 0;
  outline: none;
}

.nxw-qs-input::placeholder {
  color: #9aa5b1;
}

.nxw-qs-spinner {
  display: none;
}

.nxw-qs-esc {
  flex-shrink: 0;
  padding: 0.3rem 0.55rem;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #5a6b7d;
  background: #faf7f0;
  border: 1px solid #e3ddd0;
  border-radius: 7px;
  cursor: pointer;
}

.nxw-qs-results {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.4rem 0.55rem 0.7rem;
}

.nxw-qs-group + .nxw-qs-group {
  margin-top: 0.3rem;
}

.nxw-qs-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.65rem 0.35rem;
}

.nxw-qs-group-head span {
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9a7a3a;
}

.nxw-qs-clear {
  padding: 0.1rem 0.4rem;
  font: inherit;
  font-size: 0.74rem;
  color: #5a6b7d;
  background: none;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.nxw-qs-clear:hover {
  color: #0c1f36;
  background: #f3efe6;
}

.nxw-qs-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 0.65rem;
  color: #0c1f36;
  text-decoration: none;
  border-radius: 12px;
  scroll-margin: 0.5rem;
}

.nxw-qs-item:hover {
  text-decoration: none;
}

.nxw-qs-item.is-active {
  background: linear-gradient(90deg, rgba(197, 160, 89, 0.2), rgba(197, 160, 89, 0.08));
  box-shadow: inset 3px 0 0 #c5a059;
}

.nxw-qs-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.2rem;
  height: 2.2rem;
  color: #163a5f;
  background: #fff;
  border: 1px solid #e3ddd0;
  border-radius: 10px;
}

.nxw-qs-icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

.nxw-qs-icon.is-scholar {
  color: #9a7a3a;
}

.nxw-qs-item.is-active .nxw-qs-icon {
  color: #fff;
  background: #163a5f;
  border-color: #163a5f;
}

.nxw-qs-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.nxw-qs-text strong {
  overflow: hidden;
  font-size: 0.97rem;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-variant-numeric: lining-nums;
}

.nxw-qs-text mark {
  color: inherit;
  background: rgba(197, 160, 89, 0.35);
  border-radius: 3px;
  padding: 0 1px;
}

.nxw-qs-text small {
  overflow: hidden;
  font-size: 0.8rem;
  color: #5a6b7d;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-variant-numeric: lining-nums;
}

.nxw-qs-kind {
  flex-shrink: 0;
  padding: 0.15rem 0.5rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #7a8796;
  border: 1px solid #ebe4d6;
  border-radius: 999px;
}

.nxw-qs-item.is-active .nxw-qs-kind {
  color: #0c1f36;
  border-color: rgba(197, 160, 89, 0.6);
}

.nxw-qs-loading {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.35rem 0.65rem 0.5rem;
}

.nxw-qs-loading span {
  height: 2.2rem;
  border-radius: 10px;
  background: linear-gradient(90deg, #f3efe6 25%, #fbf8f1 50%, #f3efe6 75%) 0 0 / 200% 100%;
  animation: nxw-skeleton 1.2s linear infinite;
}

.nxw-qs-empty {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 2.2rem 1.2rem;
  text-align: center;
}

.nxw-qs-empty strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  color: #0c1f36;
  font-variant-numeric: lining-nums;
}

.nxw-qs-empty span {
  font-size: 0.88rem;
  color: #5a6b7d;
}

.nxw-qs-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1rem;
  padding: 0.6rem 1.1rem;
  font-size: 0.74rem;
  color: #7a8796;
  background: #f7f3ea;
  border-top: 1px solid #ebe4d6;
}

.nxw-qs-foot kbd {
  display: inline-grid;
  place-items: center;
  min-width: 1.3rem;
  height: 1.3rem;
  margin-right: 0.2rem;
  padding: 0 0.3rem;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  color: #0c1f36;
  background: #fff;
  border: 1px solid #e3ddd0;
  border-bottom-width: 2px;
  border-radius: 5px;
}

.nxw-qs-brand {
  margin-left: auto;
  font-weight: 600;
  color: #9a7a3a;
}

/* ---------- Newsletter (footer) ---------- */

.nx-footer-news-slot .nxw-news,
.nxw-news {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0 0 1.75rem;
}

.nxw-news-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: end;
  gap: 1.35rem 2.75rem;
  padding: 1.45rem 0 0.35rem;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(249, 247, 242, 0.1);
  border-radius: 0;
  box-shadow: none;
}

.nxw-news-kicker {
  margin: 0 0 0.3rem;
  font-family: "Source Sans 3", "Inter", system-ui, sans-serif;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #c5a059;
}

.nxw-news-title {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 600;
  line-height: 1.25;
  color: #f9f7f2;
  font-variant-numeric: lining-nums;
}

.nxw-news-lead {
  margin: 0.4rem 0 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: rgba(249, 247, 242, 0.58);
  max-width: 34rem;
}

.nxw-news-form {
  min-width: 0;
}

.nxw-news-field {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.28rem 0.28rem 0.85rem;
  background: rgba(252, 251, 247, 0.97);
  border: 1px solid rgba(197, 160, 89, 0.42);
  border-radius: 4px;
  box-shadow: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.nxw-news-field:focus-within {
  border-color: #c5a059;
  box-shadow: 0 0 0 2px rgba(197, 160, 89, 0.22);
}

.nxw-news-form[data-state="error"] .nxw-news-field {
  border-color: #d9826b;
}

.nxw-news-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #9a7a3a;
}

.nxw-news-icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

.nxw-news-input {
  flex: 1;
  min-width: 0;
  height: 2.45rem;
  padding: 0 0.25rem;
  font: inherit;
  font-size: 0.94rem;
  color: #0c1f36;
  background: transparent;
  border: 0;
  outline: none;
}

.nxw-news-input::placeholder {
  color: #8a96a3;
}

.nxw-news-btn {
  flex-shrink: 0;
  height: 2.45rem;
  padding: 0 1.15rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #0c1f36;
  background: #c5a059;
  border: 0;
  border-radius: 3px;
  box-shadow: none;
  cursor: pointer;
  transition: background 0.16s, color 0.16s;
}

.nxw-news-btn:hover:not(:disabled) {
  background: #d4b06a;
  color: #00101f;
  transform: none;
  filter: none;
}

.nxw-news-btn:disabled {
  cursor: progress;
  opacity: 0.75;
}

.nxw-news-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.nxw-news-msg {
  min-height: 1.15rem;
  margin: 0.45rem 0 0;
  font-size: 0.8rem;
  color: rgba(249, 247, 242, 0.62);
}

.nxw-news-form[data-state="success"] .nxw-news-msg {
  color: #9fe0b5;
}

.nxw-news-form[data-state="error"] .nxw-news-msg {
  color: #f2b3a3;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .nxw-news-inner {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1.1rem;
    padding-top: 1.25rem;
  }
}

@media (max-width: 560px) {
  .nxw-dock {
    right: calc(0.85rem + env(safe-area-inset-right, 0px));
    bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
  }

  .nxw-wa-fab {
    width: 3.35rem;
    height: 3.35rem;
  }

  .nxw-wa-card {
    right: -0.1rem;
    width: calc(100vw - 1.7rem - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
    border-radius: 18px;
  }

  .nxw-wa-tip {
    display: none;
  }

  .nxw-qs {
    padding: 0.6rem 0.6rem 0;
  }

  .nxw-qs-panel {
    max-height: calc(100vh - 1.2rem);
    max-height: calc(100dvh - 1.2rem);
    border-radius: 16px;
  }

  .nxw-qs-kind,
  .nxw-qs-foot {
    display: none;
  }

  .nxw-news {
    width: 100%;
    margin-bottom: 1.35rem;
  }

  .nxw-news-inner {
    padding: 1.15rem 0 0;
  }

  .nxw-news-field {
    flex-wrap: wrap;
    padding: 0.35rem;
    border-radius: 4px;
  }

  .nxw-news-icon {
    margin-left: 0.5rem;
  }

  .nxw-news-input {
    flex-basis: calc(100% - 3rem);
  }

  .nxw-news-btn {
    width: 100%;
    border-radius: 12px;
  }

  .nxw-news-msg {
    margin-left: 0.25rem;
  }
}

@keyframes nxw-pop {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes nxw-ring {
  from {
    opacity: 0.9;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(1.65);
  }
}

@keyframes nxw-bubble {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes nxw-shimmer {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}

@keyframes nxw-skeleton {
  to {
    background-position: -200% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nxw-dock,
  .nxw-top,
  .nxw-wa-fab,
  .nxw-wa-card,
  .nxw-wa-chip,
  .nxw-qs-panel,
  .nxw-qs-backdrop,
  .nxw-news-btn {
    transition: none;
  }

  .nxw-wa,
  .nxw-wa-bubble,
  .nxw-qs-loading span,
  .nxw-qs.is-busy .nxw-qs-bar::after {
    animation: none;
  }
}

/* ---------- Welcome / beta popup (driven by site-settings.js) ---------- */

.nx-welcome {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right))
    max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0s linear 0.2s;
  font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.nx-welcome.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.22s ease, visibility 0s;
}

.nx-welcome.is-leaving {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0s linear 0.18s;
}

.nx-welcome-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(197, 160, 89, 0.14), transparent 55%),
    rgba(4, 14, 28, 0.62);
  backdrop-filter: blur(3px);
}

.nx-welcome-card {
  position: relative;
  z-index: 1;
  width: min(100%, 28.5rem);
  max-height: min(88vh, 40rem);
  overflow: auto;
  padding: 1.55rem 1.5rem 1.35rem;
  border-radius: 18px;
  color: #f4efe6;
  background:
    linear-gradient(145deg, rgba(197, 160, 89, 0.14), transparent 42%),
    linear-gradient(165deg, #0d2138 0%, #163a5f 55%, #0a1829 100%);
  border: 1px solid rgba(197, 160, 89, 0.52);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 28px 64px rgba(0, 12, 28, 0.45);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.24s ease;
}

.nx-welcome.is-open .nx-welcome-card {
  transform: none;
}

.nx-welcome-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  padding: 0;
  border: 1px solid rgba(197, 160, 89, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #f4efe6;
  cursor: pointer;
}

.nx-welcome-close svg {
  width: 1rem;
  height: 1rem;
}

.nx-welcome-close:hover {
  border-color: rgba(197, 160, 89, 0.75);
  color: #fff;
}

.nx-welcome-close:focus-visible,
.nx-welcome-cta:focus-visible,
.nx-welcome-secondary:focus-visible {
  outline: 2px solid #c5a059;
  outline-offset: 2px;
}

.nx-welcome-kicker {
  margin: 0 2.2rem 0.45rem 0;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: #c5a059;
}

.nx-welcome-card h2 {
  margin: 0 2rem 0.8rem 0;
  font-family: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  font-size: clamp(1.65rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
}

.nx-welcome-body {
  font-size: 0.98rem;
  line-height: 1.5;
  color: rgba(244, 239, 230, 0.92);
}

.nx-welcome-body p {
  margin: 0 0 0.75rem;
}

.nx-welcome-body p:last-child {
  margin-bottom: 0;
}

.nx-welcome-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.nx-welcome-cta,
.nx-welcome-secondary {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.55rem;
  padding: 0.55rem 1.05rem;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
}

.nx-welcome-cta {
  border: 0;
  background: #c5a059;
  color: #1a1408;
}

.nx-welcome-cta:hover {
  filter: brightness(1.05);
}

.nx-welcome-secondary {
  border: 1px solid rgba(197, 160, 89, 0.45);
  background: transparent;
  color: #f4efe6;
}

.nx-welcome-secondary:hover {
  border-color: rgba(197, 160, 89, 0.8);
  background: rgba(255, 255, 255, 0.04);
}

html.nx-welcome-open {
  overflow: hidden;
}

@media (max-width: 520px) {
  .nx-welcome-card {
    padding: 1.3rem 1.15rem 1.2rem;
    border-radius: 16px;
  }

  .nx-welcome-actions {
    flex-direction: column;
  }

  .nx-welcome-cta,
  .nx-welcome-secondary {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nx-welcome,
  .nx-welcome-card {
    transition: none;
  }

  .nx-welcome-card {
    transform: none;
  }
}

@media print {
  .nxw-dock,
  .nxw-qs,
  .nxw-news,
  .nx-welcome {
    display: none !important;
  }
}
