/* ════════════════════════════════════════════
   NEWSLETTER SIDE TAB + PANEL
   ════════════════════════════════════════════ */

#nl-tab {
  position: fixed;
  left: 0;
  top: 40%;
  margin-top: -60px;
  width: 30px;
  height: 120px;
  background: #1B3A6B;
  border-radius: 0 3px 3px 0;
  box-shadow: 2px 0 10px rgba(0,0,0,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 200;
  border: none;
  transition: background .2s, opacity .3s;
}
#nl-tab:hover { background: #16305d; }
#nl-tab.subscribed { opacity: 0; pointer-events: none; }

#nl-tab-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: 'Jost', Helvetica, sans-serif;
  font-size: .5rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #C4AA82;
  white-space: nowrap;
  user-select: none;
}

#nl-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,22,18,.4);
  z-index: 201;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
#nl-overlay.open { opacity: 1; pointer-events: all; }

#nl-panel {
  position: fixed;
  left: -360px;
  top: 0;
  bottom: 0;
  width: 340px;
  background: #FDFCFA;
  z-index: 202;
  padding: 2.5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: left .38s cubic-bezier(.4,0,.2,1);
  box-shadow: 6px 0 32px rgba(0,0,0,.1);
  overflow-y: auto;
}
#nl-panel.open { left: 0; }

#nl-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: #6B6460;
  cursor: pointer;
  padding: .25rem .4rem;
  transition: color .2s;
}
#nl-close:hover { color: #1A1612; }

.nl-eyebrow {
  font-family: 'Jost', Helvetica, sans-serif;
  font-size: .52rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #1B3A6B;
}

.nl-heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 300;
  font-style: italic;
  color: #1A1612;
  line-height: 1.2;
  margin-top: -.2rem;
}

.nl-divider {
  width: 32px;
  height: 1px;
  background: #DDD7CE;
}

.nl-body {
  font-family: 'Jost', Helvetica, sans-serif;
  font-size: .8rem;
  font-weight: 300;
  color: #6B6460;
  line-height: 1.75;
}

#nl-form { display: flex; flex-direction: column; gap: .65rem; }

#nl-form input[type="text"],
#nl-form input[type="email"] {
  font-family: 'Jost', Helvetica, sans-serif;
  font-size: .85rem;
  font-weight: 300;
  color: #1A1612;
  background: #F7F5F1;
  border: 1px solid #DDD7CE;
  padding: .75rem 1rem;
  width: 100%;
  border-radius: 0;
  outline: none;
  transition: border-color .2s;
  -webkit-appearance: none;
}
#nl-form input:focus { border-color: #1B3A6B; background: #fff; }
#nl-form input::placeholder { color: #6B6460; opacity: .6; }

#nl-submit {
  background: #1B3A6B;
  color: #FDFCFA;
  border: none;
  padding: .82rem 1rem;
  font-family: 'Jost', Helvetica, sans-serif;
  font-size: .62rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  cursor: pointer;
  width: 100%;
  transition: background .2s;
  margin-top: .2rem;
}
#nl-submit:hover { background: #16305d; }
#nl-submit:disabled { opacity: .55; cursor: default; }

#nl-success {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  font-style: italic;
  color: #1B3A6B;
  text-align: center;
  padding: 1.5rem 0 .5rem;
  display: none;
}

.nl-note {
  font-family: 'Jost', Helvetica, sans-serif;
  font-size: .6rem;
  color: #6B6460;
  opacity: .65;
}

/* ════════════════════════════════════════════
   SHARE / REFERRAL — FLOATING BUTTON
   ════════════════════════════════════════════ */

#share-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #1B3A6B;
  color: #FDFCFA;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 190;
  border: none;
  box-shadow: 0 4px 18px rgba(27,58,107,.35);
  transition: background .2s, transform .2s, box-shadow .2s;
}
#share-btn:hover {
  background: #16305d;
  transform: scale(1.06);
  box-shadow: 0 6px 24px rgba(27,58,107,.4);
}

/* ════════════════════════════════════════════
   SHARE MODAL
   ════════════════════════════════════════════ */

#share-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,22,18,.55);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
#share-overlay.open { opacity: 1; pointer-events: all; }

#share-modal {
  position: fixed;
  inset: 0;
  z-index: 301;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  pointer-events: none;
}
#share-modal.open { pointer-events: all; }

#share-card {
  background: #FDFCFA;
  width: 100%;
  max-width: 440px;
  padding: 2.8rem 2.4rem 2.2rem;
  position: relative;
  transform: translateY(16px) scale(.98);
  opacity: 0;
  transition: transform .3s cubic-bezier(.4,0,.2,1), opacity .25s;
}
#share-modal.open #share-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

#share-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: #6B6460;
  cursor: pointer;
  padding: .25rem .4rem;
  transition: color .2s;
}
#share-close:hover { color: #1A1612; }

.share-eyebrow {
  font-family: 'Jost', Helvetica, sans-serif;
  font-size: .52rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #1B3A6B;
  margin-bottom: .6rem;
}

#share-card h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem;
  font-weight: 300;
  font-style: italic;
  color: #1A1612;
  line-height: 1.15;
  margin-bottom: .8rem;
}

.share-divider {
  width: 32px;
  height: 1px;
  background: #DDD7CE;
  margin-bottom: 1rem;
}

.share-body {
  font-family: 'Jost', Helvetica, sans-serif;
  font-size: .82rem;
  font-weight: 300;
  color: #6B6460;
  line-height: 1.75;
  margin-bottom: 1.6rem;
}

.share-options {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.share-option {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .85rem 1rem;
  background: none;
  border: 1px solid #DDD7CE;
  cursor: pointer;
  font-family: 'Jost', Helvetica, sans-serif;
  font-size: .8rem;
  font-weight: 300;
  color: #1A1612;
  text-decoration: none;
  transition: background .15s, border-color .15s;
  width: 100%;
  text-align: left;
  line-height: 1;
}
.share-option:hover { background: #F7F5F1; border-color: #C4AA82; color: #1A1612; }
.share-option svg { color: #1B3A6B; flex-shrink: 0; }

#share-copy-confirm {
  font-family: 'Jost', Helvetica, sans-serif;
  font-size: .68rem;
  color: #1B3A6B;
  letter-spacing: .05em;
  margin-top: .2rem;
  padding-left: .2rem;
  display: none;
}
#share-copy-confirm.show { display: block; }

/* ════════════════════════════════════════════
   MOBILE
   ════════════════════════════════════════════ */
@media (max-width: 640px) {
  #nl-tab { top: auto; bottom: 7rem; margin-top: 0; }
  #nl-panel { width: min(340px, 92vw); }

  #share-btn { bottom: 1.5rem; right: 1.5rem; width: 46px; height: 46px; }
  #share-card { padding: 2.2rem 1.6rem 1.8rem; }
  #share-card h2 { font-size: 1.6rem; }
}
