/* ============================================================================
   FamShare styles — family share / save / promote module (v1)
   First-party only. Colours come from the family palette; a site may
   override the --fam-* variables before this sheet loads.
   ========================================================================== */
.fam-share {
  --fam-accent: #F37021;        /* Hermès orange — the share action */
  --fam-deep: #0F5C63;          /* deep green — save / secondary */
  --fam-gold: #C6A15B;          /* Qiao Bonjour gold — saved state */
  --fam-ink: #1c1c1c;
  --fam-muted: #5c5c5c;
  --fam-paper: #ffffff;
  --fam-soft: #f6f3ec;
  --fam-line: rgba(0, 0, 0, .16);
  --fam-radius: 999px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 16px 0;
  font-family: Newsreader, Georgia, 'Times New Roman', serif;
}
.fam-btn {
  appearance: none;
  border: 1px solid var(--fam-line);
  background: var(--fam-paper);
  color: var(--fam-ink);
  border-radius: var(--fam-radius);
  padding: 9px 16px;
  font: inherit;
  font-size: 15px;
  line-height: 1.2;
  cursor: pointer;
}
.fam-btn:hover { border-color: var(--fam-ink); }
.fam-btn:focus-visible { outline: 2px solid var(--fam-accent); outline-offset: 2px; }
.fam-btn-share { background: var(--fam-accent); border-color: var(--fam-accent); color: #fff; font-weight: 600; }
.fam-btn-save[aria-pressed="true"] { background: var(--fam-gold); border-color: var(--fam-gold); color: #fff; }
.fam-btn-more { padding: 9px 12px; letter-spacing: .1em; }

/* ---- share sheet (first-party panel; same pattern as the guide panel) ---- */
.fam-sheet-backdrop {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, .45);
  z-index: 9000;
}
.fam-sheet {
  position: fixed;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: min(440px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--fam-paper, #fff);
  color: var(--fam-ink, #1c1c1c);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, .3);
  z-index: 9001;
  padding: 18px 18px 24px;
  font-family: Newsreader, Georgia, 'Times New Roman', serif;
  box-sizing: border-box;
}
@media (min-width: 560px) {
  .fam-sheet { bottom: 50%; transform: translate(-50%, 50%); border-radius: 16px; }
}
.fam-sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.fam-sheet-title { font-size: 19px; font-weight: 700; }
.fam-sheet-close {
  appearance: none; border: 1px solid var(--fam-line, rgba(0,0,0,.16));
  background: transparent; border-radius: 50%;
  width: 34px; height: 34px; font-size: 20px; line-height: 1; cursor: pointer;
}
.fam-sheet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.fam-intent {
  display: block; text-align: center;
  border: 1px solid var(--fam-line, rgba(0,0,0,.16));
  border-radius: 10px; padding: 11px 8px;
  color: var(--fam-ink, #1c1c1c); text-decoration: none; font-size: 15px;
}
.fam-intent:hover { border-color: var(--fam-ink, #1c1c1c); }
.fam-sheet-copy, .fam-invite-copy, .fam-qr-show {
  appearance: none; width: 100%;
  border: 1px solid var(--fam-deep, #0F5C63);
  background: var(--fam-deep, #0F5C63); color: #fff;
  border-radius: 10px; padding: 12px;
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  margin-bottom: 14px;
}
.fam-qr-wrap { border-top: 1px solid var(--fam-line, rgba(0,0,0,.16)); padding-top: 14px; margin-bottom: 14px; text-align: center; }
.fam-qr-label { font-size: 14px; color: var(--fam-muted, #5c5c5c); margin-bottom: 8px; }
.fam-qr-box svg { display: block; margin: 0 auto; max-width: 220px; height: auto; background: #fff; padding: 8px; border: 1px solid var(--fam-line, rgba(0,0,0,.16)); border-radius: 8px; }
.fam-qr-note { font-size: 14px; color: var(--fam-muted, #5c5c5c); margin-top: 8px; }
.fam-qr-loading { font-size: 14px; color: var(--fam-muted, #5c5c5c); }
.fam-invite { border-top: 1px solid var(--fam-line, rgba(0,0,0,.16)); padding-top: 14px; margin-bottom: 14px; }
.fam-invite-title { font-weight: 700; margin-bottom: 4px; }
.fam-invite-hint { font-size: 13px; color: var(--fam-muted, #5c5c5c); margin-bottom: 8px; }
.fam-invite-link { font-size: 13px; word-break: break-all; background: var(--fam-soft, #f6f3ec); border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; }
.fam-invite-copy { margin-bottom: 0; }
.fam-sheet-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--fam-line, rgba(0,0,0,.16)); padding-top: 14px; }
.fam-subscribe-link { color: var(--fam-deep, #0F5C63); font-weight: 600; }
.fam-print { appearance: none; background: transparent; border: 1px solid var(--fam-line, rgba(0,0,0,.16)); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 14px; cursor: pointer; }

/* ---- toast (visible feedback, never silent) ---- */
.fam-toast {
  position: fixed; left: 50%; bottom: calc(70px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  background: var(--fam-ink, #1c1c1c); color: #fff;
  border-radius: 999px; padding: 10px 18px;
  font-family: Newsreader, Georgia, serif; font-size: 15px;
  z-index: 9100; box-shadow: 0 4px 18px rgba(0, 0, 0, .3);
  max-width: 90vw; text-align: center;
}

/* ---- "My saves" page ---- */
.fam-saves-list { margin: 16px 0; }
.fam-saves-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--fam-line, rgba(0,0,0,.16)); }
.fam-saves-link { color: var(--fam-ink, #1c1c1c); font-size: 17px; }
.fam-saves-remove, .fam-saves-clear {
  appearance: none; background: transparent;
  border: 1px solid var(--fam-line, rgba(0,0,0,.16)); border-radius: 999px;
  padding: 6px 12px; font: inherit; font-size: 14px; cursor: pointer;
}
.fam-saves-note { color: var(--fam-muted, #5c5c5c); font-size: 14px; }
.fam-saves-empty { color: var(--fam-muted, #5c5c5c); padding: 24px 0; }

/* ---- print: share UI stays out of the printed page ---- */
@media print {
  .fam-share, .fam-sheet, .fam-sheet-backdrop, .fam-toast { display: none !important; }
}

/* FAM-SHARE-GLYPH-WHITE-v1 — share glyph is an inline SVG in currentColor
   (white on the orange button); no emoji tile. Lawrence 2026-11-26. */
.fam-share-ico{display:inline-flex;align-items:center;margin-right:6px;vertical-align:-2px}
.fam-share-ico svg{display:block}

/* FAM-JUMP-BAND-v1 — persistent bottom jump band (Lawrence 2026-11-26):
   the bottom banner always stays at the bottom; the door is reachable
   from every page at any moment. Band height 54px + safe-area. */
.fam-jump-band{position:fixed;left:0;right:0;bottom:0;z-index:80;background:#1d1f22;color:#fff;box-shadow:0 -2px 14px rgba(0,0,0,.18)}
.fam-jump-band a{display:flex;align-items:center;justify-content:center;gap:10px;min-height:54px;padding:6px 14px calc(6px + env(safe-area-inset-bottom));color:#fff;text-decoration:none}
.fam-jump-name{font-weight:700;letter-spacing:.04em;white-space:nowrap}
.fam-jump-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;opacity:.92}
.fam-jump-arrow{background:#F37021;color:#fff;border-radius:999px;width:26px;height:26px;display:inline-flex;align-items:center;justify-content:center;font-weight:700;flex:none;line-height:1}

/* PASS3-v1 (2026-11-27, Lawrence live direction): the bottom jump band
   leaves black (#1d1f22 slab, white text) for the family's slim light
   band — warm ground #FFF3DC, ink text, stacked wordmark+slogan lockup,
   white inline-SVG arrow on Hermes orange #F37021. */
.fam-jump-band{background:#FFF3DC;color:#23272B;box-shadow:0 -2px 10px rgba(35,39,43,.10)}
.fam-jump-band a{min-height:40px;padding:5px 14px calc(5px + env(safe-area-inset-bottom));color:#23272B;gap:12px}
.fam-jump-lockup{display:flex;flex-direction:row;align-items:baseline;gap:9px;line-height:1.12;text-align:left}
.fam-jump-name{font-size:15.5px;font-weight:700;letter-spacing:.03em;color:#23272B;white-space:nowrap}
.fam-jump-line{font-size:10.5px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:#6e5a35;white-space:nowrap}
.fam-jump-arrow{background:#F37021;color:#fff}
.fam-jump-arrow svg{display:block}
