/* Brass/bone/ink overrides for Driver.js — so the demo tour reads as
 * a native Zimun feature, not a third-party widget. Load AFTER
 * vendor-driver.css (which provides geometry/layout). */

/* Popover card */
.driver-popover {
  background: var(--bone, #f2ede1);
  color: var(--ink, #2f2822);
  border: 1px solid var(--brass, #b8893a);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
  font-family: "Geist", -apple-system, BlinkMacSystemFont, sans-serif;
  padding: 18px 20px;
  max-width: 360px;
}

.driver-popover-title {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--ink, #2f2822);
  margin: 0 0 8px 0;
  padding: 0;
}

.driver-popover-description {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2, #2c2d33);
  margin: 0 0 14px 0;
}

/* Footer / nav.
 *
 * Selectors prefixed with `.driver-popover` so they reach
 * specificity (0,2,0) — matching the vendor's
 * `.driver-popover-footer button` rule. Without the prefix,
 * vendor's `all:unset; background-color:#fff; text-shadow:...`
 * for buttons wins and the brass theming silently no-ops (the
 * leftover default styling renders as a dark-looking strip on
 * the bone popover, which is what the "black background" report
 * was). */
.driver-popover .driver-popover-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 0;
  padding: 0;
  border: none;
  background: transparent;
}

.driver-popover .driver-popover-progress-text {
  font-size: 12px;
  color: var(--ink-3, #6a6b73);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: transparent;
  /* The "N of K" label is metadata, not part of the message — it
   * should recede behind the title/body. Opacity blends it toward
   * the bone background for a clearly secondary feel. */
  opacity: 0.55;
}

.driver-popover .driver-popover-navigation-btns {
  display: inline-flex;
  gap: 8px;
  background: transparent;
  flex-grow: 0;
}

.driver-popover .driver-popover-prev-btn,
.driver-popover .driver-popover-next-btn {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid var(--brass, #b8893a);
  background: var(--brass, #b8893a);
  color: var(--button-text-color, #ffffff);
  text-shadow: none;
  transition: background 0.15s ease, border-color 0.15s ease;
  margin: 0;
  line-height: 1.2;
}

.driver-popover .driver-popover-prev-btn {
  background: transparent;
  color: var(--brass, #b8893a);
}

.driver-popover .driver-popover-prev-btn:hover {
  background: var(--brass-3, #f0e1be);
}

.driver-popover .driver-popover-next-btn:hover,
.driver-popover .driver-popover-next-btn:focus {
  background: var(--midnight, #1b3559);
  border-color: var(--midnight, #1b3559);
  color: var(--button-text-color, #ffffff);
}

.driver-popover .driver-popover-prev-btn:focus {
  background: var(--brass-3, #f0e1be);
}

.driver-popover .driver-popover-btn-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Close button */
.driver-popover-close-btn {
  font-family: inherit;
  font-size: 24px;
  line-height: 1;
  color: var(--ink-3, #6a6b73);
  background: transparent;
  border: 0;
  padding: 0 4px;
  cursor: pointer;
  position: absolute;
  top: 8px;
  right: 8px;
}

.driver-popover-close-btn:hover {
  color: var(--ink, #2f2822);
}

/* Arrow tint matches the popover */
.driver-popover-arrow-side-left.driver-popover-arrow {
  border-left-color: var(--bone, #f2ede1);
}
.driver-popover-arrow-side-right.driver-popover-arrow {
  border-right-color: var(--bone, #f2ede1);
}
.driver-popover-arrow-side-top.driver-popover-arrow {
  border-top-color: var(--bone, #f2ede1);
}
.driver-popover-arrow-side-bottom.driver-popover-arrow {
  border-bottom-color: var(--bone, #f2ede1);
}

/* Active-element ring: brass instead of generic blue */
.driver-active-element,
.driver-active-element *,
body:not(.driver-active) .driver-active-element,
body:not(.driver-active) .driver-active-element * {
  z-index: 10001;
}

.driver-active-element {
  outline: 2px solid var(--brass-2, #d9b470);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Welcome modal — same visual language */
.demo-tour-welcome-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 10100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.demo-tour-welcome-modal {
  background: var(--bone, #f2ede1);
  border: 1px solid var(--brass, #b8893a);
  border-radius: 10px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.32);
  max-width: 440px;
  width: 100%;
  padding: 28px 28px 24px;
  font-family: "Geist", -apple-system, BlinkMacSystemFont, sans-serif;
}

.demo-tour-welcome-eyebrow {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass, #b8893a);
  font-weight: 600;
  margin: 0 0 6px 0;
}

.demo-tour-welcome-title {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--ink, #2f2822);
  margin: 0 0 12px 0;
  line-height: 1.2;
}

.demo-tour-welcome-body {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2, #2c2d33);
  margin: 0 0 22px 0;
}

.demo-tour-welcome-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.demo-tour-welcome-actions button {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.demo-tour-welcome-take {
  background: var(--brass, #b8893a);
  color: var(--button-text-color, #ffffff);
  border-color: var(--brass, #b8893a);
}

.demo-tour-welcome-take:hover {
  background: var(--midnight, #1b3559);
  border-color: var(--midnight, #1b3559);
}

.demo-tour-welcome-skip {
  background: transparent;
  color: var(--ink-2, #2c2d33);
  border-color: var(--bone-3, #ddd4bd);
}

.demo-tour-welcome-skip:hover {
  background: var(--bone-2, #e8e1d0);
}

.demo-tour-welcome-forget {
  background: transparent;
  color: var(--ink-3, #6a6b73);
  border: 0;
  font-weight: 500;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 6px 4px;
}

.demo-tour-welcome-forget:hover {
  color: var(--ink, #2f2822);
}

/* "Replay tour" link in demo banner */
.demo-banner__replay {
  background: transparent;
  border: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  padding: 0 6px;
  opacity: 0.85;
}

.demo-banner__replay:hover {
  opacity: 1;
}
