/* record_page.html — an account's public record at /reviews/<slug>. The same
   stage and glass cards as the /s/ share page, laid out as a list. */
html, body { margin: 0; min-height: 100%; }
body { background: var(--stage); }

.rp-stage {
    min-height: 100vh;
    border-radius: 0;
    padding: 48px 20px 56px;
    display: flex; flex-direction: column; align-items: center;
}
.rp-stage .au-stage__blobs { position: fixed; }
.rp-stage .au-stage__blobs i:nth-child(1) { width: 420px; height: 420px; left: -80px; top: -120px; }
.rp-stage .au-stage__blobs i:nth-child(2) { width: 380px; height: 380px; right: -80px; bottom: -120px; }
.rp-stage .au-stage__blobs i:nth-child(3) { width: 260px; height: 260px; left: 40%; top: 40%; }

.rp-shell { position: relative; width: 100%; max-width: 640px; display: flex; flex-direction: column; gap: 20px; }

/* ── Who this record belongs to ─────────────────────────── */
.rp-head { text-align: center; color: var(--glass-ink); padding: 0 8px 4px; }
.rp-logo { display: block; width: 56px; height: 56px; object-fit: contain; margin: 0 auto 14px; border-radius: var(--radius-lg); }
.rp-head h1 { font-size: 28px; line-height: 34px; font-weight: 650; letter-spacing: -.02em; text-wrap: balance; }
.rp-sub { margin-top: 8px !important; font-size: 14px; line-height: 21px; color: var(--glass-ink-muted); text-wrap: balance; }

/* ── Language versions: links, one URL each ─────────────── */
.rp-langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 16px; }
.rp-langs a {
    display: inline-flex; align-items: center; height: 30px; padding: 0 12px;
    border: 1px solid var(--glass-border); border-radius: var(--radius-pill);
    background: var(--glass-fill); color: var(--glass-ink-muted);
    font: 500 12.5px/1 var(--font-sans); text-decoration: none;
}
.rp-langs a:hover { color: var(--glass-ink); border-color: var(--w-accent); }
.rp-langs a[aria-current="page"] { color: var(--glass-ink); border-color: var(--w-accent); background: var(--glass-fill-strong); }

/* ── The cards ──────────────────────────────────────────── */
.rp-list { display: flex; flex-direction: column; gap: 16px; }
/* The thank-you card (embed.css .au-glass--voice-first): the player edge to
   edge, the words centred, so Arabic and English sit alike. */
.rp-card.au-glass { width: 100%; padding: 0; }
.rp-card .au-glass__body { padding: 22px 26px 20px; }
.rp-card .au-voice { height: 140px; }
/* Guest-typed text: each piece keeps its own direction, so a stray
   right-to-left override cannot reverse anything beyond it. */
.rp-card .au-glass__who b, .rp-card .au-glass__meta, .rp-card .au-glass__text { unicode-bidi: plaintext; }
.rp-card .au-glass__who b { white-space: normal; }
.rp-card .au-glass__meta { white-space: normal; }
.rp-card .au-glass__quote { margin: 16px 0 0; font-size: 15px; line-height: 24px; }
.rp-card .au-glass__text { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.rp-card .au-glass__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 12px; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--glass-border); color: var(--glass-ink-muted); }
.rp-card .au-glass__foot span { display: inline-flex; align-items: center; gap: 6px; }
.rp-card .au-glass__foot svg { width: 14px; height: 14px; stroke: currentColor; }
.rp-permalink { color: inherit; text-decoration: none; }
.rp-permalink:hover { color: var(--glass-ink); text-decoration: underline; text-underline-offset: 2px; }
.rp-card .au-play:disabled { opacity: .45; cursor: not-allowed; }

/* Scripted: the glass player plays the hidden <audio>. Not scripted: the
   browser's own controls, and no glass button that could not do anything. */
.rp-audio { display: block; width: 100%; height: 36px; }
.js .rp-audio { display: none; }
html:not(.js) .rp-card .au-glass__player { display: none; }
html:not(.js) .rp-audio { width: calc(100% - 32px); margin: 16px 16px 0; }

/* ── Paging ─────────────────────────────────────────────── */
.rp-pages { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 4px; }
.rp-pg, .rp-pg-now {
    display: inline-flex; align-items: center;
    height: 38px; padding: 0 16px;
    border: 1px solid var(--glass-border); border-radius: var(--radius-pill);
    background: var(--glass-fill-strong); color: var(--glass-ink);
    font: 500 13px/1 var(--font-sans); text-decoration: none;
}
.rp-pg:hover { border-color: var(--w-accent); }
.rp-pg-now { background: transparent; color: var(--glass-ink-muted); border-color: transparent; }

/* ── Footer CTA (free plans) ────────────────────────────── */
.rp-cta {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    padding: 18px 22px;
    background: var(--glass-fill); border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    color: var(--glass-ink);
}
.rp-cta-text { font-size: 14px; font-weight: 600; }
.rp-cta-sub { font-size: 12.5px; color: var(--glass-ink-muted); margin-top: 3px; }
.rp-cta-btn {
    display: inline-flex; align-items: center; height: 38px; padding: 0 18px;
    background: var(--w-accent); color: var(--on-swatch);
    border-radius: var(--radius-pill); text-decoration: none;
    font-size: 13.5px; font-weight: 600; white-space: nowrap;
}
.rp-cta-btn:hover { filter: brightness(1.08); }

@media (max-width: 560px) {
    .rp-stage { padding: 28px 16px 40px; }
    .rp-head h1 { font-size: 23px; line-height: 29px; }
    .rp-card .au-glass__body { padding: 18px 18px 16px; }
    .rp-cta { flex-direction: column; align-items: stretch; }
    .rp-cta-btn { justify-content: center; }
}
