.rl-public { margin: 0; min-height: 100vh; background: var(--paper, #f5f2ec); color: var(--ink, #20211f); font: 15px/1.6 system-ui, sans-serif; }
.rl-public main { box-sizing: border-box; max-width: 1040px; margin: 0 auto; padding: clamp(20px, 5vw, 52px); }
.rl-public header { margin-bottom: 22px; font: 500 13px/1 system-ui, sans-serif; letter-spacing: .16em; }
.rl-public .rl-hero { display: block; width: 100%; height: auto; max-height: 62vh; object-fit: cover; border-radius: 18px; background: #eee9dc; }
.rl-public section { max-width: 680px; padding: 24px 0; }
.rl-public small { color: var(--accent, #a95d45); font-size: 10px; letter-spacing: .14em; }
.rl-public h1 { margin: 12px 0; font: clamp(30px, 6vw, 54px)/1.08 Georgia, serif; }
.rl-public p { color: var(--soft, #686a64); }
.rl-public a:not(.rl-primary) { color: inherit; }
.rl-public .rl-primary { display: inline-flex; margin-top: 10px; padding: 13px 20px; border-radius: 10px; background: var(--ink, #20211f); color: var(--paper, #fffdf9); text-decoration: none; }

.rl-share-orb[hidden] { display: none !important; }
.rl-share-orb {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: calc(184px + env(safe-area-inset-bottom));
  z-index: 1300;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 1px solid var(--line, #dfdbd2);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, #fffdf9, #f0e8da 68%, #cfc2ac);
  color: var(--ink, #20211f);
  box-shadow: 0 5px 18px #0002;
  cursor: pointer;
}
.rl-share-orb svg { width: 25px; height: 25px; }
.rl-share-orb:hover { transform: translateY(-2px); box-shadow: 0 8px 22px #0003; }
.rl-share-orb:disabled { opacity: .55; cursor: default; transform: none; }
.rl-share-orb:focus-visible { outline: 2px solid var(--accent, #c7654a); outline-offset: 4px; }

.rl-share-dialog {
  position: fixed;
  inset: auto 14px 24px auto;
  box-sizing: border-box;
  width: min(440px, calc(100vw - 28px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  overscroll-behavior: contain;
  margin: 0;
  padding: 24px;
  border: 1px solid var(--line, #dfdbd2);
  border-radius: 22px;
  background: var(--paper, #f5f2ec);
  color: var(--ink, #20211f);
  box-shadow: 0 20px 70px #0003;
  font: 14px/1.55 system-ui, sans-serif;
}
.rl-share-dialog::backdrop { background: #17170f66; }
.rl-share-dialog header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px dashed var(--line, #dfdbd2); }
.rl-share-eyebrow { margin: 0 0 8px; color: var(--accent, #c7654a); font-size: 9px; letter-spacing: .13em; }
.rl-share-dialog h2 { margin: 0; font-size: 27px; font-weight: 650; letter-spacing: -.035em; }
.rl-share-close { width: 40px; height: 40px; border: 0; background: transparent; color: inherit; font-size: 27px; cursor: pointer; }
.rl-share-status { margin: 14px 0; color: var(--soft, #686a64); font-size: 12px; }
.rl-share-body { display: grid; gap: 12px; }
.rl-share-preview { display: block; width: 100%; height: auto; border-radius: 12px; background: var(--surface, #fffdf9); }
.rl-share-dialog h3 { margin: 4px 0 -8px; font: 25px/1.2 Georgia, serif; }
.rl-share-credit { margin: 0; color: var(--soft, #686a64); font-size: 12px; }
.rl-share-dialog input { box-sizing: border-box; width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line, #dfdbd2); border-radius: 9px; background: var(--surface, #fffdf9); color: var(--ink, #20211f); font: 13px system-ui, sans-serif; }
.rl-share-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.rl-share-dialog button, .rl-share-dialog a { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; box-sizing: border-box; padding: 8px 12px; border: 1px solid var(--line, #dfdbd2); border-radius: 10px; background: var(--surface, #fffdf9); color: var(--ink, #20211f); font: 11px/1.4 system-ui, sans-serif; text-decoration: none; cursor: pointer; }
.rl-share-dialog .rl-share-primary { border-color: var(--ink, #20211f); background: var(--ink, #20211f); color: var(--surface, #fffdf9); }
.rl-share-dialog button:focus-visible, .rl-share-dialog a:focus-visible, .rl-share-dialog input:focus-visible { outline: 2px solid var(--accent, #c7654a); outline-offset: 3px; }
.rl-share-qr { display: block; width: 190px; max-width: 100%; margin: 8px auto; border-radius: 8px; }

@media (max-width: 640px) {
  .rl-share-orb { right: max(14px, env(safe-area-inset-right)); width: 46px; height: 46px; }
  .rl-share-dialog { inset: auto 0 0; width: 100%; max-width: none; max-height: 88dvh; padding: 20px max(18px, env(safe-area-inset-right)) calc(20px + env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left)); border-radius: 22px 22px 0 0; }
  .rl-share-dialog header { position: sticky; top: -20px; z-index: 1; padding-top: 10px; background: var(--paper, #f5f2ec); }
}
@media (prefers-reduced-motion: reduce) { .rl-share-orb { scroll-behavior: auto; } }

/* Full-screen, branded sharing workspace */
.rl-share-dialog.is-fullscreen { inset:0; width:100vw; max-width:none; height:100dvh; max-height:100dvh; margin:0; padding:calc(20px + env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) calc(22px + env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left)); border:0; border-radius:0; display:grid; grid-template-rows:auto auto minmax(0,1fr); gap:14px; }
.rl-share-dialog.is-fullscreen header { position:relative; top:auto; padding:0 0 14px; background:transparent; align-items:center; }
.rl-share-dialog.is-fullscreen .rl-share-eyebrow { margin:0; font-size:10px; letter-spacing:.2em; }
.rl-share-brand-mark { display:block; width:46px; height:46px; margin-bottom:8px; border:1px solid #b49a68; border-radius:50%; object-fit:cover; box-shadow:0 4px 14px #30271920; }
.rl-share-title-accessible { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.rl-share-dialog.is-fullscreen .rl-share-body { width:min(100%,820px); margin:0 auto; grid-template-columns:minmax(0,1.3fr) minmax(220px,.7fr); grid-template-rows:auto auto auto 1fr auto; align-content:start; gap:14px 22px; overflow:auto; }
.rl-share-dialog.is-fullscreen .rl-share-preview { grid-column:1; grid-row:1 / span 5; width:100%; max-height:calc(100dvh - 160px); object-fit:contain; align-self:center; }
.rl-share-dialog.is-fullscreen .rl-share-body h3, .rl-share-dialog.is-fullscreen .rl-share-credit, .rl-share-dialog.is-fullscreen .rl-share-body input { grid-column:2; }
.rl-share-qr-panel { grid-column:2; display:grid; justify-items:center; align-content:start; gap:8px; padding:14px; border:1px solid #e4dac9; border-radius:18px; background:linear-gradient(145deg,#fffdf9,#f0e9dc); }
.rl-share-qr-caption { margin:0; color:#8c7148; font-size:10px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; }
.rl-share-qr { width:clamp(150px,22vh,220px); margin:0; padding:8px; border:1px solid #cbb58a; background:#f7f4ec; box-shadow:0 5px 18px #29251d12; }
.rl-share-dialog .rl-share-secondary { background:transparent; }
.rl-share-dialog.is-fullscreen .rl-share-actions { grid-column:2; align-self:end; }
@media(max-width:680px) {
  .rl-share-dialog.is-fullscreen .rl-share-body { grid-template-columns:minmax(0,1fr); grid-template-rows:auto auto auto auto auto; gap:11px; }
  .rl-share-dialog.is-fullscreen .rl-share-preview { grid-column:1; grid-row:auto; max-height:30dvh; }
  .rl-share-dialog.is-fullscreen .rl-share-body h3, .rl-share-dialog.is-fullscreen .rl-share-credit, .rl-share-dialog.is-fullscreen .rl-share-body input, .rl-share-dialog.is-fullscreen .rl-share-actions, .rl-share-qr-panel { grid-column:1; }
  .rl-share-dialog.is-fullscreen .rl-share-actions { align-self:auto; }
  .rl-share-brand-mark { width:40px; height:40px; }
}
