/* RH100896 Island Pulse night — canonical v2
   Targets real app.js class names only.
*/

/* Shell */
html.kmn-pulse-night .kmn-island-pulse-card {
  background: rgba(10, 12, 16, 0.94) !important;
  border-color: rgba(255, 220, 160, 0.22) !important;
  color: #f7f3eb !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 220, 160, 0.1) !important;
}

/* Copy */
html.kmn-pulse-night .kmn-island-pulse-card .kmn-eyebrow,
html.kmn-pulse-night .kmn-island-pulse-card .kmn-island-pulse-freshness,
html.kmn-pulse-night .kmn-island-pulse-card .kmn-island-pulse-personalise,
html.kmn-pulse-night .kmn-island-pulse-card .kmn-island-pulse-signal-title,
html.kmn-pulse-night .kmn-island-pulse-card .kmn-island-pulse-signal-fallback {
  color: #d2cbbf !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Context line — white for emphasis in night mode (expanded + minimized) */
html.kmn-pulse-night .kmn-island-pulse-card .kmn-island-pulse-context {
  color: #ffffff !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Island Pulse title — keep orange pulse animation from app.css */
html.kmn-pulse-night .kmn-island-pulse-card .kmn-island-pulse-title {
  color: #e8a317 !important;
  /* do not set animation: none — inherits kmn-r3219-pulse-title */
}

/* Quickfires: Open now / Promotions / Events */
html.kmn-pulse-night .kmn-island-pulse-card .kmn-island-pulse-quickfire {
  background: transparent !important;
  background-color: transparent !important;
  border: 1px solid rgba(247, 243, 235, 0.45) !important;
  color: #ffffff !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

html.kmn-pulse-night .kmn-island-pulse-card .kmn-island-pulse-quickfire strong {
  color: #ffffff !important;
  font-weight: 600 !important;
  background: transparent !important;
}

html.kmn-pulse-night .kmn-island-pulse-card .kmn-island-pulse-quickfire span {
  background: transparent !important;
  background-color: transparent !important;
  color: #ffffff !important;
  border: 1px solid rgba(247, 243, 235, 0.35) !important;
  box-shadow: none !important;
}

/* Signal meta cells: Starts in… / distance — leaf only, not the flex row */
html.kmn-pulse-night .kmn-island-pulse-card .kmn-island-pulse-signal-meta {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

html.kmn-pulse-night .kmn-island-pulse-card .kmn-island-pulse-signal-cell {
  background: transparent !important;
  background-color: transparent !important;
  border: 1px solid rgba(247, 243, 235, 0.45) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

html.kmn-pulse-night .kmn-island-pulse-card .kmn-island-pulse-signal-cell:nth-child(2) {
  background: transparent !important;
  border-color: rgba(247, 243, 235, 0.45) !important;
  color: #ffffff !important;
}

/* Primary CTA — outline orange, white text, no gold fill */
html.kmn-pulse-night .kmn-island-pulse-card .kmn-island-pulse-primary {
  background: transparent !important;
  background-color: transparent !important;
  border: 1.5px solid #e8a317 !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

/* Native controls stay visible on dark */
html.kmn-pulse-night .kmn-island-pulse-card .kmn-island-pulse-control {
  color: #f4efe6 !important;
  background: transparent !important;
}

html.kmn-pulse-night .kmn-island-pulse-card .kmn-island-pulse-control:hover,
html.kmn-pulse-night .kmn-island-pulse-card .kmn-island-pulse-control:focus-visible {
  background: rgba(255, 255, 255, 0.1) !important;
}

/* Our moon toggle — sits in native .kmn-island-pulse-controls */
.kmn-pulse-night-btn {
  appearance: none !important;
  box-sizing: border-box !important;
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  min-height: 30px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 50% !important;
  border: 1px solid rgba(20, 16, 10, 0.08) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  color: #2a2620 !important;
  display: grid !important;
  place-items: center !important;
  cursor: pointer !important;
  line-height: 0 !important;
  flex-shrink: 0;
}

.kmn-pulse-night-btn svg {
  width: 14px !important;
  height: 14px !important;
  display: block !important;
}

html.kmn-pulse-night .kmn-pulse-night-btn {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 220, 160, 0.28) !important;
  color: #f4efe6 !important;
}

html.kmn-pulse-night .kmn-pulse-night-btn.is-active {
  background: rgba(224, 184, 74, 0.35) !important;
  border-color: rgba(224, 184, 74, 0.65) !important;
  color: #ffe9a8 !important;
}

/* Kill leftovers from older experimental builds */
.kmn-pulse-controls:not(.kmn-island-pulse-controls),
.kmn-pulse-header-row[data-kmn-injected="1"] {
  display: none !important;
}
