/* NO-COMPATIBILITY HARD RED: One current runtime contract; no legacy accommodation, dual readers, aliases, fallback interpretation, or repair-on-read. Deterministic offline production transitions require an exact owner-approved plan. See docs/INVARIANTS/NO_COMPATIBILITY.md. */
/* Shared specialist scenery geometry; stored identity supplies artwork and palette. */
body[class^="public-"] {
    --scenery-base: var(--paper);
    background-color: var(--scenery-base);
    display: flex;
    flex-direction: column;
    position: relative;
    isolation: isolate;
    min-height: 100vh;
}

body[class^="public-"] .public-site-footer {
    --footer-link-min-height: var(--public-control-min-height-compact);
    --footer-row-gap: 0;
    margin-top: auto;
}

body.public-account-page .public-account-settings > .public-account-card {
    background: var(--public-frame-background);
}

body[class^="public-"]::before {
    position: absolute;
    inset: 0 0 auto;
    height: min(100%, max(100vh, clamp(48rem, 85vw, 72rem)));
    z-index: -1;
    background: linear-gradient(var(--brand-overlay),var(--brand-overlay)), var(--brand-background);
    background-position: var(--brand-position);
    background-size: cover;
    background-repeat: no-repeat;
    content: "";
    pointer-events: none;
}

body[class^="public-"][data-scenery-overflow]::before {
    background-image: linear-gradient(to bottom, transparent calc(100% - 8rem), var(--scenery-base) 100%),
        linear-gradient(var(--brand-overlay),var(--brand-overlay)), var(--brand-background);
}

/* Retain the shared 50px edge mask on the homepage marketplace viewport. */
body.public-browse-page .public-home-hagglefor-now__viewport {
    mask-image: linear-gradient(to right, transparent, #000 50px, #000 calc(100% - 50px), transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 50px, #000 calc(100% - 50px), transparent);
}

/* Use the shared content-panel pattern for readable identity over any owner artwork. */
body.public-browse-page .public-home-introduction {
    padding: clamp(1rem, 2.5vw, 1.5rem);
    margin-bottom: 1.5rem;
    background: var(--public-frame-background);
    color: var(--ink);
    border: 1px solid var(--surface-line);
    border-radius: var(--surface-radius);
}
