/* ============================================================
   /site-overlays.css — v3.87
   Welcome modal + per-person feedback modal (used on /p/ pages
   and as a backup CSS source on main pages).
   ============================================================ */

/* ===== WELCOME MODAL ===== */

.wm-overlay {
  position: fixed; inset: 0; z-index: 9997;
  background: rgba(31, 26, 20, 0.62);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  display: none;
  align-items: center; justify-content: center;
  padding: 16px;
  padding-top: max(16px, env(safe-area-inset-top));
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  overflow-y: auto;
  animation: wmFade 0.32s ease;
}
.wm-overlay.is-open { display: flex; }

.wm-card {
  position: relative;
  max-width: 540px;
  width: 100%;
  background: #FBF7EC;
  color: #1F1A14;
  font-family: 'Cormorant Garamond', serif;
  border: 1px solid #D4C3A0;
  box-shadow: 0 12px 48px rgba(31, 26, 20, 0.32);
  padding: 36px 32px 28px;
  animation: wmSlideUp 0.42s cubic-bezier(0.2, 0.8, 0.3, 1);
}
@media (max-width: 520px) {
  .wm-card { padding: 28px 22px 22px; }
}

.wm-close {
  position: absolute;
  top: 8px; right: 12px;
  width: 36px; height: 36px;
  background: transparent;
  border: none;
  font-size: 26px;
  color: #8C7D66;
  cursor: pointer;
  line-height: 1;
}
.wm-close:hover { color: #1F1A14; }

.wm-eyebrow {
  font-family: 'Cormorant SC', serif;
  font-size: 11px;
  letter-spacing: 2.5px;
  color: #AE8636;
  text-align: center;
  margin-bottom: 18px;
}

.wm-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 32px;
  line-height: 1.15;
  text-align: center;
  margin: 0 0 14px;
  color: #1F1A14;
}

.wm-rule {
  width: 60px;
  height: 1px;
  background: #AE8636;
  margin: 0 auto 22px;
}

.wm-body {
  font-size: 16.5px;
  line-height: 1.6;
  color: #4F4234;
  margin: 0 0 22px;
  text-align: left;
}
.wm-body strong { font-weight: 600; color: #1F1A14; }
.wm-body em { color: #6B231B; font-style: italic; }

.wm-list {
  margin: 0 0 22px;
  padding: 0 0 0 22px;
  font-size: 15.5px;
  line-height: 1.55;
  color: #4F4234;
}
.wm-list li { margin-bottom: 8px; }

.wm-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 14px;
  border-top: 1px solid #E8DCBF;
}
.wm-btn {
  font-family: 'Cormorant SC', serif;
  font-size: 11.5px;
  letter-spacing: 2px;
  padding: 10px 22px;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid;
  background: transparent;
  transition: all 0.18s;
  text-decoration: none;
  display: inline-block;
}
.wm-btn-secondary { color: #4F4234; border-color: #D4C3A0; }
.wm-btn-secondary:hover { background: #F6F0E0; }
.wm-btn-primary { color: #FBF7EC; background: #8A322A; border-color: #8A322A; }
.wm-btn-primary:hover { background: #6B231B; border-color: #6B231B; }

@keyframes wmFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes wmSlideUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== PER-PERSON FEEDBACK MODAL (lighter than the main fbOverlay) ===== */

.pp-fb-overlay {
  position: fixed; inset: 0; z-index: 9996;
  background: rgba(31, 26, 20, 0.62);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: none;
  align-items: center; justify-content: center;
  padding: 16px;
  padding-top: max(16px, env(safe-area-inset-top));
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  overflow-y: auto;
  animation: wmFade 0.28s ease;
}
.pp-fb-overlay.is-open { display: flex; }

.pp-fb-card {
  position: relative;
  max-width: 540px;
  width: 100%;
  background: #FBF7EC;
  color: #1F1A14;
  font-family: 'Cormorant Garamond', serif;
  border: 1px solid #D4C3A0;
  box-shadow: 0 12px 48px rgba(31, 26, 20, 0.32);
  padding: 32px 28px 24px;
  animation: wmSlideUp 0.38s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.pp-fb-close {
  position: absolute;
  top: 8px; right: 12px;
  width: 36px; height: 36px;
  background: transparent;
  border: none;
  font-size: 26px;
  color: #8C7D66;
  cursor: pointer;
  line-height: 1;
}
.pp-fb-close:hover { color: #1F1A14; }

.pp-fb-eyebrow {
  font-family: 'Cormorant SC', serif;
  font-size: 11px;
  letter-spacing: 2.5px;
  color: #AE8636;
  text-align: center;
  margin-bottom: 14px;
}
.pp-fb-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 26px;
  line-height: 1.2;
  text-align: center;
  margin: 0 0 14px;
}
.pp-fb-subject {
  text-align: center;
  font-size: 15px;
  color: #6B231B;
  font-style: italic;
  margin-bottom: 18px;
}
.pp-fb-rule {
  width: 50px; height: 1px;
  background: #AE8636;
  margin: 0 auto 22px;
}

.pp-fb-field {
  display: flex; flex-direction: column;
  margin-bottom: 14px;
}
.pp-fb-field label {
  font-family: 'Cormorant SC', serif;
  font-size: 11px;
  letter-spacing: 2px;
  color: #8C7D66;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.pp-fb-field input,
.pp-fb-field textarea {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  color: #1F1A14;
  background: #FFFFFF;
  border: 1px solid #D4C3A0;
  padding: 10px 12px;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.18s;
}
.pp-fb-field input:focus,
.pp-fb-field textarea:focus {
  border-color: #AE8636;
}
.pp-fb-field textarea {
  resize: vertical;
  min-height: 110px;
  font-family: 'Cormorant Garamond', serif;
}

.pp-fb-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 14px;
  border-top: 1px solid #E8DCBF;
  margin-top: 18px;
}

.pp-fb-status {
  font-size: 14px;
  color: #567E42;
  text-align: center;
  margin: 14px 0;
  font-style: italic;
  display: none;
}
.pp-fb-status.is-error { color: #8A322A; }
.pp-fb-status.visible { display: block; }

/* ===== INLINE-NOTE TIP (paragraph-tap hint, on /p/ pages) ===== */

.inline-note-tip {
  position: fixed;
  bottom: 18px;
  left: 18px;
  z-index: 9000;
  background: #FBF7EC;
  border: 1px solid #D4C3A0;
  padding: 8px 14px;
  font-family: 'Cormorant SC', serif;
  font-size: 11px;
  letter-spacing: 2px;
  color: #8C7D66;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(31,26,20,0.08);
  display: none;
}
.inline-note-tip.visible { display: block; }
.inline-note-tip:hover { color: #8A322A; border-color: #8A322A; }

@media (max-width: 520px) {
  .inline-note-tip { left: 12px; bottom: 12px; font-size: 10px; padding: 7px 11px; }
}


/* ============================================================
   v3.90 — Floating Feedback Button (FAB) + Inline-Notes
   ============================================================ */

/* Floating feedback button — bottom-right on every page */
.site-fb-fab {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 9990;
  background: var(--maroon, #8A322A);
  color: var(--paper, #FBF7EC);
  border: 1px solid var(--maroon-dark, #5e231d);
  border-radius: 999px;
  padding: 13px 22px 13px 18px;
  font-family: 'Cormorant SC', serif;
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  box-shadow: 0 4px 16px rgba(31,26,20,0.18), 0 1px 3px rgba(31,26,20,0.12);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: transform 120ms ease, background 120ms ease, box-shadow 120ms ease;
  -webkit-appearance: none;
  appearance: none;
}
.site-fb-fab:hover {
  transform: translateY(-1px);
  background: var(--maroon-dark, #5e231d);
  box-shadow: 0 6px 20px rgba(31,26,20,0.22), 0 2px 4px rgba(31,26,20,0.14);
}
.site-fb-fab:active { transform: scale(0.97); }
.site-fb-fab:focus-visible {
  outline: 2px solid var(--gold, #AE8636);
  outline-offset: 2px;
}
.site-fb-fab svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.site-fb-fab .site-fb-fab-label { white-space: nowrap; }
@media (max-width: 640px) {
  .site-fb-fab {
    padding: 11px 16px;
    font-size: 10.5px;
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom));
  }
}

/* Inline-note paragraph-tap tip */
.in-tip {
  position: absolute;
  background: var(--ink, #1F1A14);
  color: var(--paper, #FBF7EC);
  padding: 7px 13px;
  font-family: 'Cormorant SC', serif;
  font-size: 10.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  z-index: 9988;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(31,26,20,0.22);
  display: none;
  border: none;
  -webkit-appearance: none;
  appearance: none;
}
.in-tip.is-shown {
  display: inline-block;
}
.in-tip:hover { background: var(--maroon, #8A322A); }
.in-tip:active { transform: scale(0.96); }

/* Visual cue that paragraphs are tappable for notes */
[data-in-tappable="1"] {
  cursor: pointer;
  transition: background 200ms ease;
  border-radius: 3px;
}
[data-in-tappable="1"]:hover {
  background: rgba(174, 134, 54, 0.06);
}

/* Inline-note overlay (modal) — same visual shape as .pp-fb-overlay */
.in-overlay {
  position: fixed;
  inset: 0;
  background: rgba(31, 26, 20, 0.55);
  z-index: 10010;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  -webkit-overflow-scrolling: touch;
}
.in-overlay.is-open {
  display: flex;
}
.in-card {
  background: var(--paper, #FBF7EC);
  border: 1px solid var(--rule, #D4C3A0);
  max-width: 560px;
  width: 100%;
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  padding: 30px 32px 28px;
  box-shadow: 0 18px 54px rgba(31,26,20,0.30);
  position: relative;
  font-family: 'Lora', Georgia, serif;
}
@media (max-width: 640px) {
  .in-card { padding: 24px 22px 22px; }
}
.in-eyebrow {
  font-family: 'Cormorant SC', serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold, #AE8636);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.in-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  color: var(--ink, #1F1A14);
  margin-bottom: 14px;
  line-height: 1.25;
}
.in-excerpt-wrap {
  background: rgba(174,134,54,0.07);
  border-left: 3px solid var(--gold, #AE8636);
  padding: 10px 14px;
  margin-bottom: 16px;
  font-style: italic;
  font-size: 13.5px;
  color: var(--ink, #1F1A14);
  line-height: 1.55;
  max-height: 140px;
  overflow-y: auto;
}
.in-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}
.in-field label {
  font-family: 'Cormorant SC', serif;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink, #1F1A14);
  margin-bottom: 6px;
}
.in-field input,
.in-field textarea {
  font-family: 'Lora', Georgia, serif;
  font-size: 14px;
  color: var(--ink, #1F1A14);
  background: #fff;
  border: 1px solid var(--rule, #D4C3A0);
  padding: 9px 12px;
  border-radius: 3px;
  width: 100%;
  box-sizing: border-box;
}
.in-field textarea {
  min-height: 95px;
  resize: vertical;
  font-family: inherit;
}
.in-field input:focus,
.in-field textarea:focus {
  outline: none;
  border-color: var(--gold, #AE8636);
  box-shadow: 0 0 0 2px rgba(174,134,54,0.18);
}
.in-buttons {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 16px;
}
.in-btn {
  font-family: 'Cormorant SC', serif;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 11px 22px;
  border-radius: 3px;
  cursor: pointer;
  border: 1px solid var(--rule, #D4C3A0);
  background: transparent;
  color: var(--ink, #1F1A14);
  transition: background 120ms ease, color 120ms ease;
  -webkit-appearance: none;
  appearance: none;
}
.in-btn:hover { background: rgba(31,26,20,0.05); }
.in-btn-primary {
  background: var(--maroon, #8A322A);
  color: var(--paper, #FBF7EC);
  border-color: var(--maroon-dark, #5e231d);
}
.in-btn-primary:hover { background: var(--maroon-dark, #5e231d); color: var(--paper, #FBF7EC); }
.in-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.in-status {
  font-family: 'Cormorant SC', serif;
  font-size: 11.5px;
  letter-spacing: 0.10em;
  color: var(--living, #567E42);
  margin-top: 10px;
  display: none;
}
.in-status.visible { display: block; }
.in-status.is-error { color: var(--memoriam, #B03028); }
.in-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: transparent;
  border: none;
  font-size: 22px;
  color: var(--ink, #1F1A14);
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  -webkit-appearance: none;
  appearance: none;
}
.in-close:hover { color: var(--maroon, #8A322A); }


/* ============================================================
   v3.92 — FAB Router chooser, toast, expanded tappable hover
   ============================================================ */

/* Router overlay (same modal pattern as .pp-fb-overlay) */
.fab-router-overlay {
  position: fixed;
  inset: 0;
  background: rgba(31, 26, 20, 0.62);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  z-index: 10005;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  padding-bottom: max(18px, env(safe-area-inset-bottom));
}
.fab-router-overlay.is-open {
  display: flex;
}
.fab-router-card {
  background: var(--paper, #FBF7EC);
  border: 1px solid var(--rule, #D4C3A0);
  max-width: 480px;
  width: 100%;
  padding: 32px 28px 28px;
  box-shadow: 0 18px 54px rgba(31,26,20,0.32);
  position: relative;
  font-family: 'Lora', Georgia, serif;
  animation: fabRouterIn 0.22s ease;
}
@keyframes fabRouterIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.fab-router-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: transparent;
  border: none;
  font-size: 24px;
  color: var(--ink, #1F1A14);
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  -webkit-appearance: none;
  appearance: none;
}
.fab-router-close:hover { color: var(--maroon, #8A322A); }
.fab-router-eyebrow {
  font-family: 'Cormorant SC', serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold, #AE8636);
  text-transform: uppercase;
  margin-bottom: 8px;
  text-align: center;
}
.fab-router-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  color: var(--ink, #1F1A14);
  text-align: center;
  margin-bottom: 22px;
  line-height: 1.3;
}
.fab-router-option {
  display: block;
  width: 100%;
  background: #fff;
  border: 1px solid var(--rule, #D4C3A0);
  padding: 16px 18px;
  margin-bottom: 12px;
  text-align: left;
  cursor: pointer;
  font-family: 'Lora', Georgia, serif;
  transition: border-color 120ms ease, background 120ms ease, transform 120ms ease;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 3px;
}
.fab-router-option:hover {
  border-color: var(--maroon, #8A322A);
  background: rgba(174,134,54,0.05);
  transform: translateY(-1px);
}
.fab-router-option:active { transform: scale(0.99); }
.fab-router-option:last-child { margin-bottom: 0; }
.fab-router-option-label {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 16.5px;
  color: var(--ink, #1F1A14);
  margin-bottom: 4px;
}
.fab-router-option-sub {
  font-size: 13px;
  color: var(--ink-soft, #4F4234);
  line-height: 1.45;
  font-style: italic;
}

/* Floating toast — top-center, slides down */
.fab-toast {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translate(-50%, -120%);
  background: var(--maroon, #8A322A);
  color: var(--paper, #FBF7EC);
  padding: 12px 22px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  font-style: italic;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(31,26,20,0.25);
  z-index: 10020;
  max-width: 90vw;
  text-align: center;
  transition: transform 280ms ease;
  pointer-events: none;
}
.fab-toast.is-shown {
  transform: translate(-50%, 0);
}
@media (max-width: 640px) {
  .fab-toast {
    top: 14px;
    font-size: 13.5px;
    padding: 11px 18px;
  }
}

/* Subtle hover on every tappable element (v3.92 — works with new wide selectors) */
[data-in-tappable="1"] {
  cursor: pointer;
  transition: background 180ms ease;
  border-radius: 3px;
}
[data-in-tappable="1"]:hover {
  background: rgba(174, 134, 54, 0.08);
}
/* Brief gold pulse to highlight tappability when user picks "fix something" */
[data-in-tappable="1"].in-pulse {
  animation: inPulse 1.8s ease;
}
@keyframes inPulse {
  0%, 100% { background: transparent; box-shadow: none; }
  20%, 50% { background: rgba(174, 134, 54, 0.16); box-shadow: 0 0 0 2px rgba(174, 134, 54, 0.2); }
}
