/* UX batch 2026-10-03 — loaded last (after css/hero-a.css).
   1. Card action icons: bigger SVG icons with real touch targets, compact card,
      artwork captions visible again.
   2. Tip modal: compact, everything (EVM · Bitcoin · Solana) on one screen.
   3. About → "Find me" hub.
   4. Anchor offset for the fixed header (Marketplaces / About).
   5. Subtle mobile "back to top" arrow + tappable brand.
   Frameless, thin lines, white / black / gray, accent #5a9bb8. */

/* ── 1. Cards ─────────────────────────────────────────────────────────── */
.gallery-protected .nft-card__head { align-items: flex-start; gap: 8px; }
.gallery-protected .nft-card__engage {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 0;
    margin: -8px -9px 0 0; /* keep the visible icons aligned with the card edge */
}
.gallery-protected .nft-like,
.gallery-protected .nft-save,
.gallery-protected .nft-share,
.gallery-protected .nft-tip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 38px;
    min-height: 38px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: var(--rd-muted);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.2s ease;
}
.gallery-protected .nft-icon {
    display: block;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}
.gallery-protected .nft-like:hover,
.gallery-protected .nft-save:hover,
.gallery-protected .nft-share:hover,
.gallery-protected .nft-tip:hover,
.gallery-protected .nft-like:focus-visible,
.gallery-protected .nft-save:focus-visible,
.gallery-protected .nft-share:focus-visible,
.gallery-protected .nft-tip:focus-visible { color: var(--rd-fg); background: none; border: 0; }
.gallery-protected .nft-like:focus-visible,
.gallery-protected .nft-save:focus-visible,
.gallery-protected .nft-share:focus-visible,
.gallery-protected .nft-tip:focus-visible { outline: 1px solid var(--rd-accent); outline-offset: -4px; }
/* Active Like / Save: filled shape in the accent blue */
.gallery-protected .nft-like.is-active,
.gallery-protected .nft-save.is-active { color: var(--rd-accent); }
.gallery-protected .nft-like.is-active .nft-icon,
.gallery-protected .nft-save.is-active .nft-icon { fill: currentColor; }
.gallery-protected .nft-like__count {
    font-family: var(--rd-ui);
    font-size: 11.5px;
    font-weight: 300;
    font-variant-numeric: tabular-nums;
    color: inherit;
}
.gallery-protected .nft-like__count[hidden] { display: none; }

/* Less technical text around the art */
.gallery-protected .nft-card__mark--os,
.gallery-protected .nft-card__mark--shop { display: none; } /* repeated by the "Studio Shop / OpenSea" links */
.gallery-protected .nft-card__mark--featured { margin-left: 0 !important; padding-left: 0 !important; border-left: 0 !important; }
.gallery-protected .nft-card__tags,
.gallery-protected .nft-card__palette,
.gallery-protected .nft-card__footer { display: none; }
.gallery-protected .nft-card__actions,
.gallery-protected .nft-card__actions--dual { margin-top: 10px; padding-top: 9px; }

/* Artwork caption (AI descriptions, NS #1–#800 …) — visible again, part of the presentation */
.gallery-protected .nft-card__description,
.gallery-protected .nft-card__description:not([hidden]) {
    display: block;
    margin: 8px 0 0;
    font-family: var(--rd-body);
    font-size: 12.5px;
    font-weight: 300;
    font-style: normal;
    line-height: 1.6;
    color: var(--gray-600);
}
@media (prefers-color-scheme: dark) {
    .gallery-protected .nft-card__description { color: #b4b4b4; }
}

@media (max-width: 768px) {
    .gallery-protected .nft-card__head { flex-direction: column; gap: 0; }
    /* Four icons stay inside the card. A row wider than the column was shifting the page sideways. */
    .gallery-protected .nft-card { min-width: 0; }
    .gallery-protected .gallery-grid { min-width: 0; }
    .gallery-protected .nft-card__engage {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 2px 0 0;
        justify-content: space-between;
        overflow: hidden;
    }
    .gallery-protected .nft-like,
    .gallery-protected .nft-save,
    .gallery-protected .nft-share,
    .gallery-protected .nft-tip {
        flex: 1 1 0;
        min-width: 0;
        max-width: 44px;
        min-height: 44px;
    }
    .gallery-protected .nft-icon { width: 22px; height: 22px; }
    .gallery-protected .nft-like__count { position: absolute; left: 31px; top: 9px; font-size: 10.5px; }
    .gallery-protected .nft-card__price { margin-top: 4px; }
    /* Caption: first lines on the card, tap to read all */
    .gallery-protected .nft-card__description,
    .gallery-protected .nft-card__description:not([hidden]) {
        font-size: 12px;
        line-height: 1.55;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 7;
        overflow: hidden;
        cursor: pointer;
    }
    .gallery-protected .nft-card__description.is-open,
    .gallery-protected .nft-card__description.is-open:not([hidden]) { display: block; -webkit-line-clamp: unset; overflow: visible; }
}

/* ── 2. Tip modal: compact rows (QR left, text right) — one screen ─────── */
.gallery-protected .tip-modal__dialog {
    width: min(720px, 100%);
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    padding: 30px 32px 24px;
}
.gallery-protected .tip-modal__title { margin: 0 32px 6px 0; font-size: 24px; }
.gallery-protected .tip-modal__lead { margin: 0 0 14px; font-size: 13px; line-height: 1.5; }
.gallery-protected .tip-modal__wallets { display: block; }
.gallery-protected .tip-wallet,
.gallery-protected .tip-modal .tip-wallet {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto auto;
    column-gap: 18px;
    row-gap: 2px;
    align-items: start;
    padding: 12px 0;
    border: 0;
    border-top: 1px solid var(--rd-rule);
    background: none;
}
.gallery-protected .tip-wallet[hidden] { display: none; }
.gallery-protected .tip-wallet > * { grid-column: 2; margin: 0; }
.gallery-protected .tip-wallet__qr,
.gallery-protected .tip-modal .tip-wallet__qr {
    grid-column: 1;
    grid-row: 1 / span 4;
    width: 92px;
    height: 92px;
    margin: 0;
    background: #fff;
    border: 0;
    border-radius: 0;
    object-fit: contain;
}
.gallery-protected .tip-wallet__label,
.gallery-protected .tip-modal .tip-wallet__label { font-size: 11px; letter-spacing: 0.14em; color: var(--rd-fg); }
.gallery-protected .tip-wallet__hint,
.gallery-protected .tip-modal .tip-wallet__hint { font-size: 12px; line-height: 1.4; color: var(--rd-muted); }
.gallery-protected .tip-wallet__address,
.gallery-protected .tip-modal .tip-wallet__address {
    margin-top: 4px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11.5px;
    line-height: 1.45;
    color: var(--rd-fg);
    word-break: break-all;
}
.gallery-protected .tip-wallet .btn--small {
    grid-column: 3;
    grid-row: 1 / span 4;
    align-self: center;
    min-height: 40px;
    padding: 0 0 0 6px;
}
.gallery-protected .tip-wallet__domains {
    display: flex;
    flex-wrap: wrap;
    gap: 0 14px;
    margin-top: 4px;
}
.gallery-protected .tip-wallet__domains::before { display: none; }
.gallery-protected .tip-wallet__domains .tip-copy-pill,
.gallery-protected .tip-modal__names-pills .tip-copy-pill { font-size: 12px; padding: 2px 0; letter-spacing: 0; }
.gallery-protected .tip-modal__names {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 14px;
    margin: 0;
    padding: 10px 0 0;
}
.gallery-protected .tip-modal__names[hidden] { display: none; }
.gallery-protected .tip-modal__names-label { margin: 0; font-size: 11px; letter-spacing: 0.14em; color: var(--rd-faint); }
.gallery-protected .tip-modal__names-pills { gap: 0 14px; }

@media (max-width: 768px) {
    .gallery-protected .tip-modal { padding: 0; align-items: stretch; }
    .gallery-protected .tip-modal__dialog {
        width: 100%;
        min-height: 0;
        max-height: 100vh;
        max-height: 100dvh;
        padding: 18px 18px 14px;
        box-shadow: none;
    }
    .gallery-protected .tip-modal__close { top: 8px; right: 10px; width: 44px; height: 44px; }
    .gallery-protected .tip-modal__title { font-size: 21px; margin-bottom: 2px; }
    .gallery-protected .tip-modal__lead { font-size: 12.5px; margin-bottom: 8px; }
    .gallery-protected .tip-wallet,
    .gallery-protected .tip-modal .tip-wallet {
        grid-template-columns: 78px minmax(0, 1fr);
        column-gap: 14px;
        padding: 10px 0;
    }
    .gallery-protected .tip-wallet__qr,
    .gallery-protected .tip-modal .tip-wallet__qr { width: 78px; height: 78px; grid-row: 1 / span 5; }
    .gallery-protected .tip-wallet__hint,
    .gallery-protected .tip-modal .tip-wallet__hint { font-size: 11.5px; }
    .gallery-protected .tip-wallet__address,
    .gallery-protected .tip-modal .tip-wallet__address { font-size: 10px; letter-spacing: -0.02em; margin-top: 2px; }
    .gallery-protected .tip-wallet .btn--small {
        grid-column: 2;
        grid-row: auto;
        justify-self: start;
        min-height: 32px;
        padding: 0;
    }
    .gallery-protected .tip-wallet__domains { gap: 0 12px; margin-top: 0; }
    .gallery-protected .tip-wallet__domains .tip-copy-pill { font-size: 11.5px; }
}

/* ── 3. About → Find me hub ───────────────────────────────────────────── */
.gallery-protected .about-hub { max-width: none; margin-top: 3.5rem; padding: 64px 0 48px; background: none; }
.gallery-protected .about-hub .about-section__body { max-width: 640px; }
.gallery-protected .about-hub .about-section__body p { font-size: 16px; line-height: 1.75; margin: 0 0 14px; }
.gallery-protected .about-hub .about-section__body p:first-child { color: var(--rd-fg); }
.gallery-protected .find-hub { max-width: 980px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--rd-rule); }
.gallery-protected .find-hub__kicker {
    margin: 0;
    font-family: var(--rd-ui);
    font-size: 26px;
    font-weight: 300;
    letter-spacing: -0.005em;
    color: var(--rd-fg);
}
.gallery-protected .find-hub__lead {
    max-width: 560px;
    margin: 6px 0 24px;
    font-family: var(--rd-body);
    font-size: 14.5px;
    font-weight: 300;
    line-height: 1.6;
    color: var(--rd-muted);
}
.gallery-protected .find-hub__cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 56px;
}
.gallery-protected .find-hub__group,
.gallery-protected .find-hub .about-section__marketplaces { margin: 0; padding: 0; border: 0; }
.gallery-protected .find-hub__label {
    display: block;
    margin: 0 0 6px;
    font-family: var(--rd-ui);
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--rd-faint);
}
.gallery-protected .find-hub__list { list-style: none; margin: 0; padding: 0; }
.gallery-protected .find-hub__list[hidden] { display: none; }
.gallery-protected .find-hub__link {
    display: flex;
    align-items: baseline;
    gap: 12px;
    min-height: 44px;
    padding: 11px 0;
    border-bottom: 1px solid var(--rd-rule);
    color: var(--rd-fg);
    text-decoration: none;
    transition: color 0.2s ease;
}
.gallery-protected .find-hub__name {
    flex: 0 0 auto;
    min-width: 92px;
    font-family: var(--rd-ui);
    font-size: 16px;
    font-weight: 300;
}
.gallery-protected .find-hub__handle {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: var(--rd-body);
    font-size: 13px;
    font-weight: 300;
    color: var(--rd-muted);
}
.gallery-protected .find-hub__arrow { flex: 0 0 auto; font-size: 13px; color: var(--rd-faint); transition: transform 0.2s ease, color 0.2s ease; }
.gallery-protected .find-hub__link:hover,
.gallery-protected .find-hub__link:focus-visible { color: var(--rd-accent-ink); }
.gallery-protected .find-hub__link:hover .find-hub__arrow,
.gallery-protected .find-hub__link:focus-visible .find-hub__arrow { color: var(--rd-accent); transform: translate(2px, -2px); }
.gallery-protected .find-hub .about-section__wallets { margin-top: 28px; padding: 0; border: 0; }
.gallery-protected .find-hub .wallet-names__hint { margin: 0 0 8px; font-size: 12.5px; color: var(--rd-muted); }
@media (max-width: 768px) {
    .gallery-protected .about-hub { padding: 48px 0 36px; }
    .gallery-protected .about-hub .about-section__body p { font-size: 15px; }
    .gallery-protected .find-hub { margin-top: 28px; padding-top: 22px; }
    .gallery-protected .find-hub__kicker { font-size: 22px; }
    .gallery-protected .find-hub__cols { grid-template-columns: 1fr; gap: 28px; }
}

/* ── 4. Anchor targets clear the fixed header ─────────────────────────── */
#about,
#about-find,
#about-marketplaces { scroll-margin-top: 76px; }

/* ── 5. Back to top: tappable brand + subtle mobile arrow ─────────────── */
.gallery-protected .site-brand { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.gallery-protected .site-brand:focus-visible { outline: 1px solid var(--rd-accent); outline-offset: 4px; }
.scroll-top-fab { display: none; }
@media (max-width: 768px) {
    .gallery-protected .scroll-top-fab {
        position: fixed;
        right: 12px;
        bottom: calc(14px + env(safe-area-inset-bottom, 0px));
        z-index: 150;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.72);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
        color: #6b6b6b;
        opacity: 0;
        visibility: hidden;
        transform: translateY(6px);
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
        -webkit-tap-highlight-color: transparent;
    }
    .gallery-protected .scroll-top-fab svg { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
    .gallery-protected .scroll-top-fab.is-visible {
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s;
    }
    .gallery-protected.tip-open .scroll-top-fab,
    .gallery-protected .site-header.is-menu-open ~ .scroll-top-fab { opacity: 0; visibility: hidden; }
}
@media (max-width: 768px) and (prefers-color-scheme: dark) {
    .gallery-protected .scroll-top-fab {
        background: rgba(20, 20, 20, 0.66);
        box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
        color: #b0b0b0;
    }
}
