/* Design-review overlay & static-mode tweaks.
 * Loaded on every page during design review.
 * Remove the design-nav.css + design-nav.js <link>/<script> tags + this file to go fully live.
 */

/* 1. Un-stick the site nav so it doesn't float on scroll */
.nav { position: static !important; backdrop-filter: none !important; background: var(--hm-cream) !important; }

/* 1b. Pause the marquee "+++ let's work together" ticker so it sits still in preview */
.ticker-track { animation: none !important; }

/* 1c. Disable any sticky/fixed positioning on page elements (e.g. FAQ intro column)
 *      so nothing moves with scroll during design review.
 *      Note: applies unconditionally so it works even before design-nav.js boots. */
body [style*="position: sticky"],
body [style*="position:sticky"] { position: static !important; top: auto !important; }

/* 2. Disable all interactions on the page itself (forms, links, buttons)
 *    The design-nav overlay re-enables pointer events on itself only.        */
html.dn-static body > * { pointer-events: none !important; }
html.dn-static body > .dn-root,
html.dn-static body > .dn-root *,
html.dn-static body > .dn-feedback-layer,
html.dn-static body > .dn-feedback-layer *,
html.dn-static body > .dn-pick-overlay,
html.dn-static body > .dn-pick-hint,
html.dn-static body > .dn-toast { pointer-events: auto !important; }

/* Also visually hide native focus rings caused by tab-keying through dead links */
html.dn-static body :focus { outline: none !important; }

/* 3. Design-nav launcher (bottom-right floating chips) */
.dn-root { position: fixed; right: 20px; bottom: 20px; z-index: 99999; font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.dn-chips { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.dn-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  background: #1E1414; color: #F5EEE4;
  border: none; border-radius: 999px; padding: 12px 18px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  box-shadow: 0 12px 28px rgba(0,0,0,0.25);
  cursor: pointer;
}
.dn-toggle .dn-ven { width: 28px; height: auto; color: #F5EEE4; display: block; }
.dn-toggle .dn-sep { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: 0.5; align-self: center; flex-shrink: 0; }
.dn-toggle:hover { background: #000; }

/* Circular + button for feedback */
.dn-fb-toggle {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: #FF4B3E; color: #F5EEE4; border: none; cursor: pointer;
  box-shadow: 0 12px 28px rgba(255,75,62,0.35);
}
.dn-fb-toggle:hover { background: #D93A2E; transform: translateY(-1px); transition: all 0.15s; }
.dn-fb-badge {
  position: absolute; top: -4px; right: -4px;
  background: #1E1414; color: #F5EEE4;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #F5EEE4;
}

.dn-panel {
  position: absolute; bottom: calc(100% + 12px);
  width: 300px; background: #FFFFFF; color: #1E1414;
  border-radius: 14px; padding: 14px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.28), 0 4px 12px rgba(0,0,0,0.12);
  display: none;
}
.dn-panel-pages    { right: 52px; }   /* aligned over the design-preview chip */
.dn-panel-feedback { right: 0; }       /* aligned over the + button */
.dn-root.open-pages    .dn-panel-pages    { display: block; }
.dn-root.open-feedback .dn-panel-feedback { display: block; }
.dn-panel h4 { margin: 4px 6px 10px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: #6B5F59; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dn-feedback-count { font-size: 11px; color: #6B5F59; font-weight: 500; letter-spacing: 0; text-transform: none; }

.dn-pinlist { list-style: none; margin: 10px 0 0; padding: 0; max-height: 40vh; overflow: auto; }
.dn-pinlist-empty { font-size: 12px; color: #6B5F59; padding: 12px 6px; line-height: 1.5; }
.dn-pinlist-item {
  display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: center;
  padding: 8px 8px; border-radius: 8px; cursor: pointer; font-size: 13px;
}
.dn-pinlist-item:hover { background: #F5EEE4; }
.dn-pinlist-status { margin-left: auto; }
.dn-pinlist-num { background: #FF4B3E; color: #fff; width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.dn-pinlist-item.status-in_progress .dn-pinlist-num { background: #E8B53A; color: #1E1414; }
.dn-pinlist-item.status-resolved    .dn-pinlist-num { background: #2F6B4E; }
.dn-pinlist-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #1E1414; }
.dn-pinlist-status { font-size: 10px; color: #6B5F59; text-transform: uppercase; letter-spacing: 0.08em; }
.dn-list { list-style: none; margin: 0; padding: 0; max-height: 50vh; overflow: auto; }
.dn-list li a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 10px; border-radius: 8px; color: #1E1414; text-decoration: none;
  font-size: 14px; font-weight: 500;
}
.dn-list li a:hover { background: #F5EEE4; }
.dn-list li a.active { background: #1E1414; color: #F5EEE4; }
.dn-list li a .dn-pagestatus {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  flex-shrink: 0; margin-left: auto;
}
.dn-list li a .dn-pagestatus-empty { background: rgba(143, 31, 22, 0.10); color: #8F1F16; }
.dn-list li a .dn-pagestatus-done  { background: #2F6B4E; color: #fff; }
.dn-list li a .dn-pagestatus-draft    { background: #FBEFD0; color: #8B6A00; }
.dn-list li a .dn-pagestatus-progress { background: #D7E7F5; color: #1E4A7A; font-size: 9px; font-weight: 700; letter-spacing: 0; width: auto; height: 18px; padding: 0 6px; border-radius: 10px; }
.dn-list li a.active .dn-pagestatus-empty    { background: rgba(245,238,228,0.18); color: #FFE5E2; }
.dn-list li a.active .dn-pagestatus-done     { background: #F5EEE4; color: #2F6B4E; }
.dn-list li a.active .dn-pagestatus-draft    { background: #F5EEE4; color: #8B6A00; }
.dn-list li a.active .dn-pagestatus-progress { background: #F5EEE4; color: #1E4A7A; }

/* Status message inside feedback panel */
.dn-statusmsg { font-size: 12px; line-height: 1.5; padding: 10px 12px; border-radius: 8px; margin: 4px 6px 10px; }
.dn-statusmsg.is-good { background: #D9EBDD; color: #1F4E33; }
.dn-statusmsg.is-warn { background: #FBEFD0; color: #6B4F00; }
.dn-statusmsg.is-info { background: #F5EEE4; color: #1E1414; }

/* Submit / no-feedback buttons inside the feedback row */
.dn-panel .dn-feedback-row button.dn-btn-submit { background: #2F6B4E; color: #F5EEE4; }
.dn-panel .dn-feedback-row button.dn-btn-submit:hover { background: #1F4E33; opacity: 1; }
.dn-panel .dn-feedback-row button.dn-btn-nofb { background: transparent; color: #1E1414; border: 1px solid rgba(0,0,0,0.12); }
.dn-panel .dn-feedback-row button.dn-btn-nofb:hover { background: rgba(0,0,0,0.04); opacity: 1; }
.dn-lockedline { font-size: 12px; color: #6B5F59; padding: 8px 6px; font-style: italic; flex: 1; }

/* Locked + button visual cue */
.dn-root.is-locked .dn-fb-toggle { background: #8B8580; box-shadow: 0 6px 14px rgba(0,0,0,0.18); cursor: not-allowed; }
.dn-root.is-locked .dn-fb-toggle:hover { background: #8B8580; transform: none; }

/* Draft pin list rows */
.dn-pinlist-item.is-draft .dn-pinlist-status { color: #8B6A00; font-weight: 700; }

/* Draft pin marker — slightly translucent so it reads as "pending" */
.dn-pin.is-draft { opacity: 0.95; }
.dn-foot { font-size: 11px; color: #6B5F59; padding: 10px 6px 4px; border-top: 1px solid rgba(0,0,0,0.06); margin-top: 6px; }

@media print { .dn-root { display: none !important; } }

/* ===================== CUSTOM CONFIRM MODAL ===================== */
.dn-modal-backdrop {
  position: fixed; inset: 0; z-index: 100000;
  background: rgba(31, 20, 20, 0.42);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  animation: dn-modal-fade 0.16s ease-out;
  pointer-events: auto !important;
}
html.dn-static body > .dn-modal-backdrop,
html.dn-static body > .dn-modal-backdrop * { pointer-events: auto !important; }
.dn-modal-backdrop.is-leaving { animation: dn-modal-fade-out 0.14s ease-in forwards; }
@keyframes dn-modal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes dn-modal-fade-out { from { opacity: 1; } to { opacity: 0; } }

.dn-modal {
  background: #FFFFFF; color: #1E1414;
  width: 100%; max-width: 460px;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.30), 0 8px 24px rgba(0,0,0,0.12);
  animation: dn-modal-pop 0.18s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.dn-modal-backdrop.is-leaving .dn-modal { animation: dn-modal-pop-out 0.14s ease-in forwards; }
@keyframes dn-modal-pop { from { transform: translateY(8px) scale(0.985); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }
@keyframes dn-modal-pop-out { to { transform: translateY(4px) scale(0.99); opacity: 0; } }

.dn-modal-title {
  margin: 0 0 12px;
  font-size: 20px; line-height: 1.25; font-weight: 700;
  letter-spacing: -0.01em; color: #1E1414;
  font-family: inherit;
}
.dn-modal-body { font-size: 14px; line-height: 1.55; color: #3B2E2A; }
.dn-modal-body p { margin: 0 0 10px; }
.dn-modal-body p:last-child { margin-bottom: 0; }

.dn-modal-warning {
  display: flex; gap: 10px; align-items: flex-start;
  margin-top: 14px; padding: 12px 14px;
  background: #FBEFD0; color: #6B4F00;
  border-radius: 10px; font-size: 13px; line-height: 1.5;
}
.dn-modal-warning-icon {
  flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%;
  background: #E8B53A; color: #1E1414;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px;
}

.dn-modal-actions {
  display: flex; gap: 10px; justify-content: flex-end;
  margin-top: 22px;
}
.dn-modal-btn {
  font-family: inherit; font-size: 14px; font-weight: 600;
  padding: 10px 18px; border-radius: 10px; cursor: pointer;
  border: none; transition: transform 0.08s ease, background 0.12s ease;
}
.dn-modal-btn:active { transform: scale(0.98); }
.dn-modal-btn:focus-visible { outline: 2px solid #1E1414; outline-offset: 2px; }
.dn-modal-cancel  { background: transparent; color: #3B2E2A; }
.dn-modal-cancel:hover { background: rgba(0,0,0,0.05); }
.dn-modal-primary { background: #1E1414; color: #F5EEE4; }
.dn-modal-primary:hover { background: #000; }
.dn-modal-danger  { background: #8F1F16; color: #F5EEE4; }
.dn-modal-danger:hover { background: #6E140C; }

@media (max-width: 480px) {
  .dn-modal { padding: 20px; border-radius: 14px; }
  .dn-modal-title { font-size: 18px; }
  .dn-modal-actions { flex-direction: column-reverse; }
  .dn-modal-btn { width: 100%; }
}

/* ===================== TOUR OVERLAY ===================== */
.dn-tour-btn {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(31,20,20,0.78); color: #F5EEE4;
  border: none; cursor: pointer;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 14px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 14px rgba(0,0,0,0.18);
}
.dn-tour-btn:hover { background: #000; }

.dn-tour-backdrop {
  position: fixed; inset: 0; z-index: 100001;
  pointer-events: auto;
  animation: dn-modal-fade 0.18s ease-out;
  font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
}
html.dn-static body > .dn-tour-backdrop,
html.dn-static body > .dn-tour-backdrop * { pointer-events: auto !important; }
.dn-tour-backdrop.is-leaving { animation: dn-modal-fade-out 0.16s ease-in forwards; }

/* Soft dim everywhere via a box-shadow on the spotlight (no clip-path required) */
.dn-tour-spot {
  position: absolute; border-radius: 16px;
  box-shadow: 0 0 0 9999px rgba(31, 20, 20, 0.55);
  outline: 2px solid #FF4B3E;
  outline-offset: 2px;
  transition: all 0.22s cubic-bezier(0.22, 0.61, 0.36, 1);
  pointer-events: none;
}
.dn-tour-arrow {
  position: absolute; width: 24px; height: 24px;
  pointer-events: none;
  background: #FF4B3E;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 3v15M5 11l7 7 7-7' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 3v15M5 11l7 7 7-7' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / contain no-repeat;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.35));
  animation: dn-tour-bounce 1.4s ease-in-out infinite;
}
@keyframes dn-tour-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

.dn-tour-card {
  position: absolute; max-width: 320px;
  background: #FFFFFF; color: #1E1414;
  border-radius: 14px; padding: 18px 20px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.32), 0 6px 16px rgba(0,0,0,0.16);
  animation: dn-modal-pop 0.22s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.dn-tour-step {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: #FF4B3E; margin-bottom: 6px;
}
.dn-tour-title {
  margin: 0 0 8px;
  font-family: inherit;
  font-size: 18px; line-height: 1.25; font-weight: 700;
  letter-spacing: -0.01em; color: #1E1414;
}
.dn-tour-body { margin: 0; font-size: 14px; line-height: 1.55; color: #3B2E2A; }
.dn-tour-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 16px; }
.dn-tour-skip {
  background: transparent; border: none; padding: 6px 0; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 500; color: #6B5F59;
}
.dn-tour-skip:hover { color: #1E1414; }
.dn-tour-next { padding: 9px 18px; font-size: 13px; }

@media (max-width: 480px) {
  .dn-tour-card { left: 16px !important; right: 16px !important; max-width: none; bottom: auto !important; top: 16px !important; }
  .dn-tour-arrow { display: none; }
}

/* ===================== FEEDBACK LAYER ===================== */
/* The pin overlay covers the page and is always interactive even though
 * the page itself has pointer-events: none.                              */
.dn-feedback-layer {
  position: absolute; inset: 0; pointer-events: none; z-index: 9000;
}
html.dn-static body > .dn-feedback-layer,
html.dn-static body > .dn-feedback-layer * { pointer-events: auto !important; }

/* Crosshair mode — body cursor changes, full-page click-catcher overlay */
.dn-pick-overlay {
  position: fixed; inset: 0; z-index: 9500; cursor: crosshair;
  background: rgba(31,20,20,0.04);
  pointer-events: auto !important;
}
.dn-pick-hint {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
  background: #1E1414; color: #F5EEE4; padding: 10px 18px; border-radius: 999px;
  font-size: 13px; font-weight: 600; box-shadow: 0 10px 24px rgba(0,0,0,0.25);
  z-index: 9600;
}

/* Pin marker */
.dn-pin {
  position: absolute; transform: translate(-50%, -100%);
  width: 32px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff;
  cursor: pointer; user-select: none;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.28));
  transition: transform 0.15s;
}
.dn-pin:hover { transform: translate(-50%, -100%) scale(1.08); }
.dn-pin .dn-pin-shape {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.dn-pin .dn-pin-num { position: relative; z-index: 2; padding-bottom: 10px; }
.dn-pin.status-open    .dn-pin-shape  { fill: #FF4B3E; }
.dn-pin.status-in_progress .dn-pin-shape { fill: #E8B53A; }
.dn-pin.status-resolved .dn-pin-shape { fill: #2F6B4E; }

/* Pin popover */
.dn-popover {
  position: absolute; min-width: 280px; max-width: 320px;
  background: #fff; color: #1E1414;
  border-radius: 12px; padding: 14px;
  box-shadow: 0 18px 42px rgba(0,0,0,0.22), 0 4px 10px rgba(0,0,0,0.08);
  font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 14px; line-height: 1.45;
}
.dn-popover.dn-pop-anchor { transform: translate(-50%, 12px); }
.dn-popover h5 { margin: 0 0 6px; font-family: inherit; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #6B5F59; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.dn-popover .dn-pop-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; padding: 3px 8px; border-radius: 999px;
  background: #F5EEE4; color: #1E1414; letter-spacing: 0.06em;
}
.dn-popover .dn-pop-status.status-open { background: #FFE5E2; color: #8F1F16; }
.dn-popover .dn-pop-status.status-in_progress { background: #FBEFD0; color: #6B4F00; }
.dn-popover .dn-pop-status.status-resolved { background: #D9EBDD; color: #1F4E33; }
.dn-popover .dn-pop-body { white-space: pre-wrap; word-wrap: break-word; }
.dn-popover .dn-pop-meta { margin-top: 10px; font-size: 11px; color: #6B5F59; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.dn-popover .dn-pop-meta a { color: #FF4B3E; text-decoration: none; font-weight: 600; }
.dn-popover .dn-pop-meta-actions { display: inline-flex; align-items: center; gap: 25px; }
.dn-pop-delete,
.dn-pop-edit {
  background: transparent; border: none; padding: 0;
  color: #6B5F59; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: color 0.12s;
}
.dn-pop-delete:hover { color: #8F1F16; background: transparent; }
.dn-pop-edit:hover { color: #1E1414; background: transparent; }
.dn-pop-locked {
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: #6B5F59; background: #F5EEE4; padding: 4px 8px; border-radius: 999px;
}
.dn-pop-edit-input {
  width: 100%; min-height: 80px; resize: vertical;
  border: 1px solid rgba(0,0,0,0.18); border-radius: 8px;
  padding: 10px; font-family: inherit; font-size: 14px; line-height: 1.45;
  color: #1E1414; background: #FAF7F2; outline: none;
}
.dn-pop-edit-input:focus { border-color: #1E1414; background: #fff; }
.dn-popover textarea {
  width: 100%; min-height: 90px; resize: vertical;
  border: 1px solid rgba(0,0,0,0.12); border-radius: 8px; padding: 10px;
  font-family: inherit; font-size: 14px; line-height: 1.4; color: inherit;
  background: #FAF7F2; outline: none;
}
.dn-popover textarea:focus { border-color: #1E1414; background: #fff; }
.dn-popover .dn-pop-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.dn-popover button {
  font-family: inherit; font-size: 13px; font-weight: 600;
  padding: 8px 14px; border-radius: 8px; cursor: pointer; border: none;
}
.dn-popover button.dn-btn-primary { background: #1E1414; color: #F5EEE4; }
.dn-popover button.dn-btn-primary:hover { background: #000; }
.dn-popover button.dn-btn-primary:disabled { opacity: 0.5; cursor: wait; }
.dn-popover button.dn-btn-ghost { background: transparent; color: #6B5F59; }
.dn-popover button.dn-btn-ghost:hover { color: #1E1414; }

/* Feedback action in the existing nav panel */
.dn-panel .dn-feedback-row {
  display: flex; gap: 6px; padding: 6px 4px 10px;
  border-bottom: 1px solid rgba(0,0,0,0.06); margin-bottom: 8px;
}
.dn-panel .dn-feedback-row button {
  flex: 1; font-family: inherit; font-size: 12px; font-weight: 600;
  padding: 8px 10px; border-radius: 8px; cursor: pointer; border: none;
  background: #1E1414; color: #F5EEE4;
}
.dn-panel .dn-feedback-row button.dn-btn-ghost { background: transparent; color: #1E1414; border: 1px solid rgba(0,0,0,0.12); }
.dn-panel .dn-feedback-row button.dn-btn-submit { background: #2F6B4E; color: #F5EEE4; }
.dn-panel .dn-feedback-row button.dn-btn-submit:hover { background: #1F4E33; }
.dn-panel .dn-feedback-row button:hover { opacity: 0.95; }
.dn-feedback-count { font-size: 11px; color: #6B5F59; font-weight: 400; }

/* Toast */
.dn-toast {
  position: fixed; bottom: 80px; right: 20px; z-index: 99999;
  background: #1E1414; color: #F5EEE4;
  padding: 12px 18px; border-radius: 10px; font-size: 13px; font-weight: 500;
  box-shadow: 0 12px 28px rgba(0,0,0,0.25);
  animation: dn-toast-in 0.2s ease-out;
  font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
}
@keyframes dn-toast-in { from { transform: translateY(8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.dn-toast.error { background: #8F1F16; }

