/* Bot honeypot: clipped off-screen input only (no label; name is ignored by humans). */
.lbv-registry-form__hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.lbv-registry-page {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
}

/* ---------- Full-bleed scene (no parallax) ---------- */
.lbv-registry-scene {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 4vw, 48px) clamp(16px, 4vw, 40px);

  background-image: url('../images/registry-form-bg.png');
  background-size: cover;
  background-position: center center;
  background-attachment: scroll;
}

@media (max-width: 768px) {
  .lbv-registry-scene {
    background-image: url('../images/the-registry-mobile-1.jpg');
    background-size: contain;
    background-position: top center;
    padding: clamp(24px, 33vw, 148px) clamp(16px, 4vw, 40px);
    padding-bottom: 1rem;
  }
}

/* ---------- Parchment card — double gold rule border ----------
   Technique: CSS border = outer rule.
   box-shadow inset layers = inner gap + inner rule.
   Layer order (first is on top):
     1. inset 0 0 0 6px  #ddd2a4  → parchment gap (hides the gold beneath)
     2. inset 0 0 0 7.5px #b89640 → inner gold rule (only 1.5px peeks past gap)
   ========================================================================== */
.lbv-registry-card {
  width: min(452px, 100%);
  background: #DDD2A4;
  border: 1.5px solid #b89640;
  box-shadow:
    inset 0 0 0 6px    #DDD2A4,
    inset 0 0 0 7.5px  #b89640,
    0 4px 12px rgba(0, 0, 0, 0.30),
    0 18px 52px rgba(0, 0, 0, 0.36);
  /* Extra left/right padding absorbs the 7.5px inner rule so content aligns cleanly */
  padding: 40px 48px 36px;
}

/* ---------- Card header ---------- */
.lbv-registry-card__header {
  text-align: center;
  margin-bottom: 24px;
}

.lbv-registry-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.6vw + 0.3rem, 1.4rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #140e04;
  margin: 0 0 16px;
  line-height: 1.2;
}

.lbv-registry-card__lead {
  font-family: var(--font-display);
  font-size: clamp(0.8rem, 0.7vw + 0.4rem, 0.9375rem);
  font-style: italic;
  font-weight: 400;
  color: #2a1e08;
  margin: 0 0 3px;
  line-height: 1.55;
}

.lbv-registry-card__lead:last-child {
  margin-bottom: 0;
}

/* ---------- Feedback notices ---------- */
.lbv-registry-card__notice {
  font-family: var(--font-text);
  font-size: var(--fs-small);
  letter-spacing: 0.06em;
  padding: 10px 14px;
  margin-bottom: 20px;
  border-left: 3px solid #8B6914;
  background: rgba(139, 105, 20, 0.1);
  color: #140e04;
}

.lbv-registry-card__notice--error {
  border-left-color: #a05050;
  background: rgba(160, 80, 80, 0.08);
}

/* ---------- Form ---------- */
.lbv-registry-form {
  position: relative;
  display: flex;
  flex-direction: column;
}

/* ---------- Field ---------- */
.lbv-registry-form__field {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.lbv-registry-form__label {
  display: block;
  font-family: var(--font-text);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #140e04;
  margin-bottom: 5px;
  line-height: 1;
}

.lbv-registry-form__hint {
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: none;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.7rem;
  color: #5a4820;
}

.lbv-registry-form__input {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(60, 44, 12, 0.4);
  border-radius: 0;
  padding: 3px 0 5px;
  font-family: var(--font-display);
  font-size: 0.875rem;
  color: #140e04;
  outline: none;
  transition: border-color 200ms ease;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

.lbv-registry-form__input:focus {
  border-bottom-color: #8B6914;
}

/* Date field */
.lbv-registry-form__date-wrap {
  position: relative;
}

input[type="date"].lbv-registry-form__input::-webkit-calendar-picker-indicator {
  opacity: 0;
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.lbv-registry-form__date-icon {
  position: absolute;
  right: 0;
  bottom: 7px;
  color: #6a5028;
  pointer-events: none;
  display: flex;
  align-items: center;
}

/* ---------- REGISTER button — double rule border ----------
   Outer border = `border`.
   Inner double rule via inset box-shadow, same technique as card.
   ========================================================================== */
.lbv-registry-form__submit {
  display: block;
  width: 100%;
  margin-top: 24px;
  padding: 14px 24px 13px;
  background: #0f0d06;
  color: #DDD2A4;
  font-family: var(--font-text);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  border: 1px solid #0f0d06;
  box-shadow:
    inset 0 0 0 4px  #0f0d06,
    inset 0 0 0 5px  #DDD2A4,
    inset 0 0 0 6px  #0f0d06;
  border-radius: 0;
  cursor: pointer;
  transition: background 200ms ease;
  -webkit-appearance: none;
  appearance: none;
}

.lbv-registry-form__submit:hover,
.lbv-registry-form__submit:focus-visible {
  background: #2c2408;
  box-shadow:
    inset 0 0 0 4px  #2c2408,
    inset 0 0 0 5px  #DDD2A4,
    inset 0 0 0 6px  #2c2408;
}

/* ---------- Consent ---------- */
.lbv-registry-form__consent {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  cursor: pointer;
}

.lbv-registry-form__consent input[type="checkbox"] {
  flex-shrink: 0;
  width: 13px;
  height: 13px;
  border: 1.5px solid rgba(60, 44, 12, 0.5);
  border-radius: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease;
}

.lbv-registry-form__consent input[type="checkbox"]:checked {
  background: #140e04;
  border-color: #140e04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='9' viewBox='0 0 9 9'%3E%3Cpath d='M1.5 4.5l2 2L7.5 2' stroke='%23DDD2A4' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.lbv-registry-form__consent span {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-style: italic;
  color: #2a1e08;
  line-height: 1.4;
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .lbv-registry-card {
    padding: 32px 24px 28px;
  }
}

/* ---------- Success modal (native dialog, parchment card) ---------- */
.lbv-registry-modal {
  border: none;
  padding: 0;
  margin: auto;
  max-width: min(420px, calc(100vw - 32px));
  background: transparent;
  overflow: visible;
}

.lbv-registry-modal::backdrop {
  background: rgba(15, 13, 6, 0.52);
}

@media (prefers-reduced-motion: no-preference) {
  .lbv-registry-modal::backdrop {
    backdrop-filter: blur(3px);
  }
}

.lbv-registry-modal__inner {
  width: 100%;
  background: #DDD2A4;
  border: 1.5px solid #b89640;
  box-shadow:
    inset 0 0 0 6px #DDD2A4,
    inset 0 0 0 7.5px #b89640,
    0 4px 12px rgba(0, 0, 0, 0.28),
    0 28px 72px rgba(0, 0, 0, 0.38);
  padding: 36px 44px 32px;
  text-align: center;
}

.lbv-registry-modal__mark {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.lbv-registry-modal__mark .lbv-mark img {
  width: 76px;
  height: auto;
}

.lbv-registry-modal__copy {
  margin-bottom: 22px;
}

.lbv-registry-modal__text {
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  font-weight: 400;
  color: #2a1e08;
  margin: 0 0 12px;
  line-height: 1.55;
}

.lbv-registry-modal__text--welcome {
  font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.03em;
  color: #140e04;
  margin-bottom: 0;
}

.lbv-registry-modal .lbv-registry-modal__close {
  margin-top: 4px;
}

@media (max-width: 480px) {
  .lbv-registry-modal__inner {
    padding: 28px 28px 26px;
  }
}

/* ==========================================================================
   Registry listing — ivory editorial table (Template: The Registry — Listing)
   ========================================================================== */

.lbv-registry-list-section {
  padding-block: clamp(72px, 12vw, var(--section-y));
}

.lbv-registry-list__header {
  text-align: center;
  margin-bottom: clamp(8px, 2vw, 16px);
}

.lbv-registry-list__eyebrow {
  display: block;
  font-family: var(--font-text);
  font-size: var(--fs-eyebrow);
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.lbv-registry-list__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-h2);
  margin: 0 0 16px;
  line-height: 1.15;
  color: var(--ink);
}

.lbv-registry-list__lead {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-lead);
  color: var(--ink-soft);
  margin: 0 auto 28px;
  max-width: 42ch;
}

.lbv-registry-list__cta-wrap {
  margin: 0;
}

.lbv-registry-list__table-wrap {
  margin-top: clamp(24px, 4vw, 40px);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.lbv-registry-list__table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
}

.lbv-registry-list__table thead th {
  text-align: left;
  font-family: var(--font-text);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  color: var(--ink-soft);
  padding: 12px 20px 14px 0;
  border-bottom: 1px solid var(--rule-gold);
}

.lbv-registry-list__table tbody td {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  color: var(--ink);
  padding: 16px 20px 16px 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

.lbv-registry-list__table tbody tr:last-child td {
  border-bottom-color: transparent;
}

.lbv-registry-list__empty {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-lead);
  color: var(--ink-soft);
  text-align: center;
  margin: clamp(48px, 8vw, 72px) auto 0;
  max-width: 38ch;
}

.lbv-registry-list__pagination {
  margin-top: clamp(36px, 6vw, 56px);
  display: flex;
  justify-content: center;
}

.lbv-registry-list__pagination .page-numbers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.lbv-registry-list__pagination .page-numbers a,
.lbv-registry-list__pagination .page-numbers span {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 6px 10px;
}

.lbv-registry-list__pagination .page-numbers a:hover {
  color: var(--gold-warm);
}

.lbv-registry-list__pagination .page-numbers .current {
  color: var(--ink);
  border-bottom: 1px solid var(--gold);
}

@media (max-width: 720px) {
  .lbv-registry-list__table {
    min-width: 0;
  }

  .lbv-registry-list__table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .lbv-registry-list__table tbody tr {
    display: block;
    padding: 22px 0;
    border-bottom: 1px solid var(--rule);
  }

  .lbv-registry-list__table tbody tr:last-child {
    border-bottom: none;
  }

  .lbv-registry-list__table tbody td {
    display: grid;
    grid-template-columns: minmax(7.5rem, 36%) 1fr;
    gap: 6px 14px;
    padding: 10px 0;
    border-bottom: none;
    align-items: baseline;
  }

  .lbv-registry-list__table tbody td::before {
    content: attr(data-label);
    font-family: var(--font-text);
    font-size: var(--fs-eyebrow);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--tracking-eyebrow);
    color: var(--ink-soft);
  }
}
