/* ============================================================
   BROTHERHOOD — /share page (rides on site.css + tokens)
   Phone first: most people open this from the lobby or the drive home.
   ============================================================ */

/* ---------- HERO ---------- */
.share-hero {
  position: relative; overflow: hidden;
  padding: clamp(116px, 15vh, 168px) 0 clamp(36px, 5vw, 56px);
  background: linear-gradient(162deg, #7D2D3F 0%, #5A3551 40%, #45506E 72%, #374967 100%);
}
.share-hero__glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(90% 70% at 82% 6%, rgba(221,67,67,.22) 0%, transparent 52%);
}
.share-hero__inner { position: relative; max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.share-hero__eyebrow { color: var(--bh-pale-blue); margin: 0 0 14px; }
.share-hero__title {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(38px, 6vw, 76px); line-height: .96; margin: 0; color: #fff; max-width: 18ch; text-wrap: balance;
}
.share-hero__lead {
  font-family: var(--font-body); font-weight: 300; font-size: clamp(17px, 2vw, 21px);
  line-height: 1.5; color: rgba(244,243,241,.86); max-width: 52ch; margin: 18px 0 0;
}

/* ---------- STEPS ---------- */
.share-steps {
  list-style: none; counter-reset: step; display: flex; flex-wrap: wrap; gap: 8px 10px;
  margin: 22px 0 0; padding: 0;
}
.share-steps li { counter-increment: step; }
.share-steps a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px 8px 8px;
  font-family: var(--font-ui); font-weight: 600; font-size: 15px; color: #fff; text-decoration: none;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: var(--r-pill);
}
.share-steps a::before {
  content: counter(step); display: inline-grid; place-items: center; width: 26px; height: 26px;
  border-radius: 50%; background: var(--bh-bright-red); font-size: 14px;
}
.share-steps a:hover { background: rgba(255,255,255,.16); }
.share-step { scroll-margin-top: 96px; }
.share-build .share-step { margin-top: 0; margin-bottom: 20px; }
.share-scroll {
  font-family: var(--font-ui); font-weight: 600; font-size: 15px; color: var(--fg-1);
  margin: 18px 0 0; padding: 12px 14px; border-radius: var(--r-md);
  background: rgba(221,67,67,.14); border: 1px solid rgba(221,67,67,.4);
}

/* ---------- BUILDER ---------- */
.share-build { padding: clamp(32px, 5vw, 64px) 0; }
.share-build__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.share-output { position: sticky; top: 96px; }
@media (max-width: 900px) {
  .share-build__grid { grid-template-columns: 1fr; }
  .share-output { position: static; }
}

.share-row { border: 0; margin: 0 0 22px; padding: 0; min-width: 0; }
.share-row legend, .share-label {
  display: block; padding: 0; margin: 0 0 10px;
  font-family: var(--font-ui); font-weight: 600; font-size: 15px; color: var(--fg-1);
}
.share-row legend small { font-weight: 400; color: var(--fg-3); font-size: 13px; margin-left: 6px; }

.share-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.share-chip {
  font-family: var(--font-ui); font-size: 15px; font-weight: 500; line-height: 1.2;
  color: var(--fg-1); background: var(--surface-1); border: 1px solid var(--line);
  border-radius: var(--r-pill); padding: 10px 15px; min-height: 42px; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.share-chip:hover { border-color: rgba(255,255,255,.34); }
.share-chip[aria-pressed="true"] { background: var(--bh-bright-red); border-color: var(--bh-bright-red); color: #fff; }
.share-chip:disabled { opacity: .4; cursor: default; }
.share-chip:focus-visible, .share-target:focus-visible, .share-tile:focus-visible { outline: 3px solid var(--bh-pale-blue); outline-offset: 2px; }

.share-input, .share-text {
  width: 100%; box-sizing: border-box; font-family: var(--font-body); font-size: 16px; line-height: 1.5;
  color: var(--fg-1); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px;
}
.share-text { min-height: 260px; resize: vertical; white-space: pre-wrap; }
.share-input:focus, .share-text:focus { outline: 2px solid var(--bh-pale-blue); outline-offset: 1px; }
.share-subject { margin-bottom: 14px; }
.share-meta { font-family: var(--font-ui); font-size: 13px; color: var(--fg-3); margin: 6px 0 14px; min-height: 1em; }
.share-meta .over { color: var(--bh-bright-red); }

.share-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.share-actions .bh-btn, .share-targets .bh-btn { gap: 8px; }
.share-copy { flex: 1 1 200px; justify-content: center; font-size: 17px; text-transform: uppercase; letter-spacing: .06em; }
.bh-btn svg { width: 18px; height: 18px; }

.share-h2 {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(24px, 3vw, 32px); line-height: 1.05; margin: 32px 0 12px; color: var(--fg-1);
}
.share-note { font-family: var(--font-ui); font-size: 14px; color: var(--fg-2); margin: 10px 0 0; max-width: 60ch; }
.share-targets, .share-rate__links { display: flex; flex-wrap: wrap; gap: 8px; }
.share-target {
  display: inline-flex; align-items: center; min-height: 42px; padding: 10px 16px;
  font-family: var(--font-ui); font-weight: 600; font-size: 15px; color: var(--fg-1); text-decoration: none;
  background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-pill);
}
.share-target:hover { border-color: rgba(255,255,255,.34); }

/* ---------- IMAGES ---------- */
.share-send, .share-images, .share-rate {
  padding: clamp(28px, 4vw, 48px) 0 clamp(40px, 6vw, 72px); border-top: 1px solid var(--line);
}
.share-send .share-step, .share-images .share-step, .share-rate .share-step { margin-top: 0; }
.share-send .bh-btn { gap: 8px; }
.share-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 16px; }
@media (max-width: 520px) { .share-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; } }
.share-tile { position: relative; margin: 0; border-radius: var(--r-md); overflow: hidden; background: var(--surface-1); border: 2px solid transparent; }
.share-tile[aria-current="true"] { border-color: var(--bh-bright-red); }
.share-tile__pick { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.share-tile__pick img { display: block; width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.share-tile__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 2px 8px; padding: 8px 10px; font-family: var(--font-ui); font-size: 13px; line-height: 1.3; color: var(--fg-2); }
.share-tile__bar a { color: var(--fg-1); font-weight: 600; text-decoration: none; white-space: nowrap; margin-left: auto; }
.share-tile__badge { color: var(--bh-bright-red); font-weight: 700; white-space: nowrap; display: none; }
.share-tile[aria-current="true"] .share-tile__badge { display: inline; }

/* ---------- TOAST ---------- */
.share-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0;
  background: var(--fg-1); color: var(--ink-1); font-family: var(--font-ui); font-weight: 600;
  padding: 12px 18px; border-radius: var(--r-pill); box-shadow: var(--shadow-lg); pointer-events: none;
  transition: opacity .2s, transform .2s; z-index: 50;
}
.share-toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (prefers-reduced-motion: reduce) { .share-toast, .share-chip { transition: none; } }

.share-rate__links { margin-top: 16px; }
