/* ============================================================
   LawScroll Pulse — Design system
   ============================================================
   Concept: an editorial "digest" feed built for scanning legal
   headlines fast, not a social-app clone. The name is literal —
   a scroll of paper — so the page background is a warm paper
   tone, headlines run in a serif that echoes the flowing half of
   the logotype, and everything else stays quiet so the headline
   does the work.

   Palette (brand color pulled from the actual logo mark):
     --ink    #1B2430  primary text
     --paper  #FAFAF7  page background (the "scroll" of it)
     --surface #FFFFFF card background
     --brand  #355E66  logo teal — buttons, active states, links
     --brand-dark #25454C
     --gold   #B8934B  small accent — the "verified source" mark
     --muted  #6B7280  secondary text
     --line   #E7E3DA  warm hairline borders

   Type:
     Headlines — 'Fraunces' (echoes the logo's flowing "Scroll")
     Everything else — 'Inter'
   ============================================================ */

:root {
    --ink: #1B2430;
    --paper: #FAFAF7;
    --surface: #FFFFFF;
    --brand: #355E66;
    --brand-dark: #25454C;
    --gold: #B8934B;
    --muted: #6B7280;
    --line: #E7E3DA;
    --radius: 14px;
    --max-width: 620px;
    --tabbar-height: 56px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    padding-bottom: calc(var(--tabbar-height) + 16px);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

.serif { font-family: 'Fraunces', Georgia, serif; }

/* ---------------------------------------------------------------
   Top header
--------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(250, 250, 247, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

.site-header__top {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 14px 18px 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-header__icons {
    display: flex;
    align-items: center;
    gap: 4px;
}
.site-header__icon-link {
    color: var(--muted);
    font-size: 19px;
    padding: 4px 6px;
}
.site-header__icon-link:hover { color: var(--brand); }

.logo-img { height: 24px; width: auto; }

/* ---------------------------------------------------------------
   Search bar (site header on search.php)
--------------------------------------------------------------- */
.search-bar {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 10px 18px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.search-bar__input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.search-bar__icon {
    position: absolute;
    left: 12px;
    color: var(--muted);
    font-size: 14px;
    pointer-events: none;
}
.search-bar__input {
    width: 100%;
    padding: 10px 12px 10px 34px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 14px;
    font-family: inherit;
    background: var(--surface);
    color: var(--ink);
}
.search-bar__input:focus { outline: none; border-color: var(--brand); }
.search-bar__filters {
    display: flex;
    gap: 8px;
}
.search-bar__select {
    flex: 1;
    min-width: 0;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 12.5px;
    font-family: inherit;
    background: var(--surface);
    color: var(--ink);
}

.category-bar {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 18px;
    scrollbar-width: none;
}
.category-bar::-webkit-scrollbar { display: none; }

.chip {
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 15px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    white-space: nowrap;
}

.chip.is-active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.chip--preferred:not(.is-active) {
    border-color: var(--gold);
    color: var(--brand-dark);
}

.chip--following {
    border-color: var(--gold);
    color: var(--brand-dark);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.chip--following i { font-size: 11px; color: var(--gold); }
.chip--following.is-active i { color: #fff; }

.category-intro {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 18px 14px;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
}

/* Visually hidden but present for screen readers and search engines
   — used for the page's real <h1> where the logo already carries the
   visual branding, so we don't want a second, redundant on-screen
   heading. */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------------------------------------------------------------
   Feed + cards
--------------------------------------------------------------- */
.feed {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 14px 14px 40px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 14px;
    overflow: hidden;
}

.card__top {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 14px 0;
}

.card__avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
    border: 1px solid var(--line);
}

.card__avatar--initials {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.card__topinfo {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.card__source {
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.card__verified { color: var(--gold); font-size: 12px; }

.card__meta {
    font-size: 11.5px;
    color: var(--muted);
}

.card__follow-btn {
    flex: 0 0 auto;
    font-size: 11.5px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid var(--brand);
    background: transparent;
    color: var(--brand);
    cursor: pointer;
    white-space: nowrap;
}
.card__follow-btn.is-following {
    background: var(--brand);
    color: #fff;
}
.card__follow-btn:disabled { opacity: 0.6; cursor: default; }

.card__external {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 16px;
    padding: 6px;
}

.card__media {
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-top: 10px;
    background: #eee;
    overflow: hidden;
    cursor: pointer;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; }

.card__body {
    padding: 12px 14px 4px;
    cursor: pointer;
}

.card__badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.card__tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--brand-dark);
    background: #EAF0EF;
    padding: 3px 9px;
    border-radius: 999px;
}

.card__title {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 1.3;
    margin: 0 0 6px;
}

.card__summary {
    font-size: 14px;
    line-height: 1.5;
    color: #454B54;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card__actions {
    display: flex;
    border-top: 1px solid var(--line);
    margin-top: 8px;
}

.card__action {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: none;
    border: none;
    padding: 11px 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
}
.card__action:not(:last-child) { border-right: 1px solid var(--line); }
.card__action i { font-size: 15px; }
.card__action.save-btn.is-saved { color: var(--brand); }

/* ---------------------------------------------------------------
   Loading / empty states
--------------------------------------------------------------- */
.feed-sentinel {
    text-align: center;
    padding: 20px 0 30px;
    font-size: 13px;
    color: var(--muted);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
    font-size: 15px;
}

.empty-state .btn-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--brand);
    font-weight: 600;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: calc(var(--tabbar-height) + 20px);
    transform: translateX(-50%) translateY(10px);
    background: var(--ink);
    color: #fff;
    font-size: 13px;
    padding: 10px 16px;
    border-radius: 999px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 60;
}
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------------------------------------------------------------
   Bottom tab bar
--------------------------------------------------------------- */
.tabbar {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--max-width);
    bottom: 0;
    height: var(--tabbar-height);
    background: var(--surface);
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 30;
}

/* On screens wider than the content column, the tab bar no longer
   touches the browser's edges — give it a visible boundary so it
   reads as a docked bar under the feed rather than a floating,
   oddly-cropped strip. */
@media (min-width: 660px) {
    .tabbar {
        border-left: 1px solid var(--line);
        border-right: 1px solid var(--line);
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -2px 16px rgba(0,0,0,0.06);
    }
}

.tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex: 1;
    height: 100%;
    background: none;
    border: none;
    color: var(--muted);
    font-size: 20px;
    cursor: pointer;
}
.tab span { font-size: 10px; font-weight: 600; }
.tab.is-active { color: var(--brand); }

.tab-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--line);
}
.tab.is-active .tab-avatar { border: 2px solid var(--brand); }

.account-popover {
    position: fixed;
    /* Tracks the tab bar's actual right edge whether the column is
       flush with the viewport (mobile) or centered with gutters on
       either side (desktop) — a fixed "right: 16px" only worked for
       the mobile case and left the popover stranded at the browser
       edge, far from the account tab, on wider screens. */
    right: max(16px, calc((100vw - var(--max-width)) / 2 + 16px));
    bottom: calc(var(--tabbar-height) + 10px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.14);
    padding: 14px;
    width: 200px;
    z-index: 35;
    display: none;
}
.account-popover.is-open { display: block; }

.account-popover__name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-popover__link {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand);
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    margin-bottom: 8px;
}

.account-popover__signout {
    width: 100%;
    background: var(--paper);
    border: 1px solid var(--line);
    color: var(--ink);
    padding: 9px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.account-popover__signout:hover { background: var(--line); }

/* ---------------------------------------------------------------
   Sources browse page (sources.php)
--------------------------------------------------------------- */
.sources-page {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px 18px 40px;
}
.sources-page__title {
    font-family: 'Fraunces', serif;
    font-size: 24px;
    margin: 0 0 6px;
}
.sources-page__title--categories {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}
.sources-page__sub {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 22px;
    max-width: 520px;
}

.sources-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.source-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px 14px;
}
.source-row .card__avatar { width: 36px; height: 36px; }
.source-row .card__avatar--initials { font-size: 14px; }

.source-row__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}
.source-row__name { font-size: 14.5px; font-weight: 700; }
.source-row__meta {
    font-size: 12px;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.source-row__meta a { color: var(--muted); text-decoration: underline; }

.source-row__follow-btn {
    flex: 0 0 auto;
    padding: 7px 16px;
    font-size: 12.5px;
}

/* ---------------------------------------------------------------
   Reading drawer
--------------------------------------------------------------- */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(27, 36, 48, 0.55);
    z-index: 40;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }

.drawer {
    position: fixed;
    z-index: 41;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    box-shadow: 0 -4px 30px rgba(0,0,0,0.2);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    left: 0;
    right: 0;
    bottom: 0;
    height: 92vh;
    height: 92dvh;
    border-radius: 18px 18px 0 0;
    transform: translateY(100%);
}
.drawer.is-open { transform: translateY(0); }

.drawer__handle {
    width: 36px;
    height: 4px;
    background: var(--line);
    border-radius: 999px;
    margin: 10px auto 0;
    flex: 0 0 auto;
}

.drawer__header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    flex: 0 0 auto;
}

.drawer__source { font-size: 14px; font-weight: 600; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer__open-original { font-size: 13px; font-weight: 600; color: var(--brand); white-space: nowrap; }
.drawer__close { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--ink); padding: 4px 6px; }
.drawer__body { flex: 1; position: relative; background: #fff; }
.drawer__body iframe { width: 100%; height: 100%; border: none; }

.drawer__fallback {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 30px; gap: 14px;
}
.drawer__fallback p { color: var(--muted); font-size: 14px; max-width: 320px; }
.drawer__fallback-btn { font-weight: 700; font-size: 15px; color: #fff; background: var(--brand); padding: 12px 22px; border-radius: 999px; }

@media (min-width: 760px) {
    .drawer { top: 0; right: 0; left: auto; bottom: 0; height: 100vh; height: 100dvh; width: 520px; border-radius: 0; transform: translateX(100%); }
    .drawer.is-open { transform: translateX(0); }
    .drawer__handle { display: none; }
}

/* ---------------------------------------------------------------
   Share sheet (branded image card)
--------------------------------------------------------------- */
.share-sheet-backdrop {
    position: fixed; inset: 0; background: rgba(27,36,48,0.6);
    z-index: 50; display: none; align-items: flex-end; justify-content: center;
}
.share-sheet-backdrop.is-open { display: flex; }

.share-sheet {
    background: var(--surface);
    border-radius: 18px 18px 0 0;
    width: 100%; max-width: var(--max-width);
    max-height: 90dvh;
    overflow-y: auto;
    padding: 18px;
    text-align: center;
    position: relative;
}

.share-sheet canvas {
    width: 100%;
    max-width: 320px;
    border-radius: 12px;
    margin: 0 auto 16px;
    border: 1px solid var(--line);
    background: var(--paper);
    transition: opacity 0.2s ease;
}
.share-sheet.is-generating canvas { opacity: 0.35; }

.share-sheet__status {
    display: none;
    font-size: 13px;
    color: var(--muted);
    margin: -10px 0 16px;
}
.share-sheet.is-generating .share-sheet__status { display: block; }

.share-sheet__actions { display: flex; gap: 10px; }
.share-sheet__btn {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--line);
    background: var(--paper);
    cursor: pointer;
}
.share-sheet__btn:disabled { opacity: 0.5; cursor: default; }
.share-sheet__btn--primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.share-sheet__close { display: block; margin: 14px auto 0; color: var(--muted); font-size: 13px; background: none; border: none; cursor: pointer; }

/* Desktop: a centered dialog instead of a sheet pinned to the
   bottom edge — the mobile "bottom sheet" pattern looked stranded
   and out of place on a wide browser window. */
@media (min-width: 660px) {
    .share-sheet-backdrop { align-items: center; }
    .share-sheet { border-radius: 18px; }
}

/* ---------------------------------------------------------------
   Onboarding
--------------------------------------------------------------- */
.onboarding-body { padding-bottom: 0; }
.onboarding {
    max-width: 440px;
    margin: 0 auto;
    padding: 50px 22px 40px;
    text-align: center;
}
.onboarding__logo { height: 30px; margin: 0 auto 30px; }
.onboarding h1 { font-family: 'Fraunces', serif; font-size: 26px; margin-bottom: 8px; }
.onboarding__sub { color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.onboarding__grid { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 30px; }

.onboarding__pill input { position: absolute; opacity: 0; pointer-events: none; }
.onboarding__pill span {
    display: inline-block;
    padding: 11px 18px;
    border-radius: 999px;
    border: 1.5px solid var(--line);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.onboarding__pill input:checked + span {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.onboarding__continue {
    width: 100%;
    padding: 15px;
    border-radius: 999px;
    border: none;
    background: var(--brand);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}
.onboarding__skip {
    display: block;
    margin-top: 16px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

/* ---------------------------------------------------------------
   404 / 500 / offline status pages
--------------------------------------------------------------- */
.status-body { padding-bottom: 0; display: flex; min-height: 100vh; min-height: 100dvh; }
.status-page {
    margin: auto;
    text-align: center;
    padding: 40px 24px;
    max-width: 360px;
}
.status-page__logo { height: 26px; margin: 0 auto 30px; }
.status-page__code {
    font-family: 'Fraunces', serif;
    font-size: 56px;
    font-weight: 600;
    color: var(--line);
    line-height: 1;
    margin-bottom: 6px;
}
.status-page h1 { font-family: 'Fraunces', serif; font-size: 22px; margin: 0 0 10px; }
.status-page p { color: var(--muted); font-size: 14px; margin: 0 0 22px; }
.status-page__btn {
    display: inline-block;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 26px;
    border-radius: 999px;
}

/* ---------------------------------------------------------------
   Sign-in page (auth/login.php)
--------------------------------------------------------------- */
.auth-body { padding-bottom: 0; display: flex; min-height: 100vh; min-height: 100dvh; background: var(--paper); }
.auth-page {
    margin: auto;
    width: 100%;
    max-width: 400px;
    padding: 44px 26px 40px;
    text-align: center;
}
.auth-page__logo { height: 30px; margin: 0 auto 28px; }
.auth-page h1 {
    font-family: 'Fraunces', serif;
    font-size: 25px;
    font-weight: 600;
    margin: 0 0 8px;
    line-height: 1.25;
}
.auth-page__sub {
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.5;
    margin: 0 0 28px;
}

.auth-page__benefits {
    list-style: none;
    margin: 0 0 30px;
    padding: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.auth-page__benefits li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: var(--ink);
}
.auth-page__benefit-icon {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #E7EFEE; /* fallback for browsers without color-mix() */
    background: color-mix(in srgb, var(--brand) 12%, transparent);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.auth-page__cta {
    width: 100%;
    padding: 15px;
    border-radius: 999px;
    border: none;
    background: var(--brand);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.15s ease, opacity 0.15s ease;
}
.auth-page__cta:hover { background: var(--brand-dark); }
.auth-page__cta:disabled { opacity: 0.7; cursor: default; }

.auth-page__spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: auth-spin 0.7s linear infinite;
}
.auth-page__cta.is-loading .auth-page__spinner { display: inline-block; }
.auth-page__cta.is-loading .auth-page__cta-label { opacity: 0.85; }
@keyframes auth-spin { to { transform: rotate(360deg); } }

.auth-page__via {
    margin-top: 16px;
    font-size: 12.5px;
    color: var(--muted);
}
.auth-page__back {
    display: inline-block;
    margin-top: 26px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

@media (min-width: 768px) {
    .auth-page { max-width: 420px; padding-top: 64px; }
    .auth-page h1 { font-size: 28px; }
}

/* ---------------------------------------------------------------
   Library (saved.php) section headers
--------------------------------------------------------------- */
.library-section-title {
    font-family: 'Fraunces', serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--muted);
    margin: 22px 4px 10px;
}
.library-section-title:first-child { margin-top: 4px; }

/* ---------------------------------------------------------------
   Share-card export (offscreen clone of a real feed card, captured
   as an image) — never visible to the user directly, only rendered
   off-canvas so html2canvas can rasterize it.

   The card itself is untouched (same DOM/CSS as the live feed) —
   only the frame AROUND it is designed specifically for a shared
   image: a branded backdrop, an elevated card with a real shadow
   (flat on the page, but shared images read as "stickers" people
   post elsewhere, so a bit of depth here is deliberate), and a
   cleaner footer than the plain wordmark+text the page itself uses.
--------------------------------------------------------------- */
.share-card-export {
    position: fixed;
    left: -9999px;
    top: 0;
    width: 600px;
    padding: 40px 36px 32px;
    background: linear-gradient(165deg, var(--brand) 0%, var(--brand-dark) 100%);
}

.share-card-export__kicker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 0 20px;
    color: rgba(255,255,255,0.85);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.share-card-export__kicker::before,
.share-card-export__kicker::after {
    content: '';
    height: 1px;
    width: 34px;
    background: rgba(255,255,255,0.3);
}

/* The real card, elevated on the gradient backdrop. */
.share-card-export .card {
    margin-bottom: 0;
    border-radius: 18px;
    border-color: rgba(0,0,0,0.06);
    box-shadow: 0 18px 40px -12px rgba(15, 26, 30, 0.45);
}
.share-card-export .card__actions,
.share-card-export .card__external,
.share-card-export .card__follow-btn,
.share-card-export .card__badges { display: none; }
.share-card-export .card__top { padding-top: 18px; }
.share-card-export .card__body { padding-bottom: 18px; }

.share-card-export__footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 28px 0 2px;
}
.share-card-export__footer .shared-via {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
}
.share-card-export__wordmark {
    display: flex;
    align-items: center;
    gap: 9px;
}
.share-card-export__wordmark img { height: 22px; width: auto; display: block; }
.share-card-export__wordmark .pulse {
    font-family: 'Google Sans Flex', 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 20px;
    color: #fff;
    letter-spacing: -0.005em;
}
.share-card-export__footer .url {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: rgba(255,255,255,0.65);
}
