/* V54 (54.0) shell -- delta 52.1 H01-H04: the GUEST home HERO returns to the signed pb40 geometry (pb-v40-home.css lines 44-76).
   Loaded by Views/Home/Index.cshtml AFTER pb-v40-home.css and pb-v51-home.css. Scoped ONLY to the guest marker
   .pb40-home[data-pb-v521-guest] (rendered on the guest home only): no rule reaches the member home, the header, the logo, the sidebar
   or the lower home modules; pb-v51-home.css stays loaded for its other improvements. The pb40 tokens (frame / background / text)
   carry Light / Dark / System. The breakpoint is the guest CONTAINER (named pb521-guest), never the viewport:
     below 760px  one column, copy + actions before the art, padding 24px 16px, gap 16px, radius 20px, art 100% up to 280px;
     from 760px   columns 1.25fr / 1fr, padding 40px, gap 32px, art up to 420px (or the column);
   natural height (no min-height). Title clamp(28px, 6cqi, 46px) / 1.15, margin-bottom 12px (#pbHeroTitle + the marker win over the
   global "main h1:not(#_)" size rule of pb-components.css without !important); intro 18px / 1.55, margin-bottom 20px, max 36em;
   actions min-height 48px, gap 12px. The grid keeps the document direction (HE RTL / EN LTR flip once); the art is never mirrored. */
.pb40-home[data-pb-v521-guest] {
    container-type: inline-size;
    container-name: pb521-guest;
}
.pb40-home[data-pb-v521-guest] > .pb40-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy" "art";
    align-items: center;
    gap: 16px;
    box-sizing: border-box;
    min-width: 0;
    min-inline-size: 0;
    max-width: none;
    max-inline-size: none;
    height: auto;
    min-height: 0;
    padding: 24px 16px;
    margin-inline: 0;
    margin-block-end: 24px;
    border-radius: 20px;
    border: 1px solid var(--pb40-hero-edge);
    background: var(--pb40-hero-bg);
}
.pb40-home[data-pb-v521-guest] > .pb40-hero > .pb40-hero__copy {
    grid-area: copy;
    min-width: 0;
    min-inline-size: 0;
}
.pb40-home[data-pb-v521-guest] > .pb40-hero #pbHeroTitle.pb40-hero__title {
    margin: 0 0 12px;
    font-size: clamp(28px, 6cqi, 46px);
    line-height: 1.15;
    font-weight: 700;
    color: var(--pb40-text);
    overflow-wrap: anywhere;
}
.pb40-home[data-pb-v521-guest] .pb40-hero__lead {
    margin: 0 0 20px;
    max-width: 36em;
    font-size: 18px;
    line-height: 1.55;
    color: var(--pb40-text);
    overflow-wrap: anywhere;
}
/* the former tail (mode note, actions, help, "More options") is now INSIDE the copy -- a plain block, not a third grid cell */
.pb40-home[data-pb-v521-guest] .pb40-hero__copy > .pb51-hero__tail { min-inline-size: 0; }
.pb40-home[data-pb-v521-guest] .pb40-hero__actions,
.pb40-home[data-pb-v521-guest] .pb51-hero__tail .pb40-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-block-start: 0;
}
.pb40-home[data-pb-v521-guest] .pb40-hero__actions .pb-btn {
    min-height: 48px;
    min-block-size: 48px;
    max-inline-size: 100%;
    box-sizing: border-box;
    white-space: normal;
    overflow-wrap: anywhere;
}
.pb40-home[data-pb-v521-guest] .pb40-hero__more {
    margin: 14px 0 0;
    font-size: 14px;
    color: var(--pb40-muted);
}
.pb40-home[data-pb-v521-guest] .pb40-hero__more a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.pb40-home[data-pb-v521-guest] > .pb40-hero > .pb40-hero__art {
    grid-area: art;
    display: flex;
    justify-content: center;
    min-width: 0;
    min-inline-size: 0;
}
.pb40-home[data-pb-v521-guest] .pb40-hero__img {
    display: block;
    width: 100%;
    inline-size: 100%;
    max-width: 280px;
    max-inline-size: 280px;
    height: auto;
    block-size: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}
@container pb521-guest (min-width: 760px) {
    .pb40-home[data-pb-v521-guest] > .pb40-hero {
        grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
        grid-template-areas: "copy art";
        padding: 40px;
        gap: 32px;
    }
    .pb40-home[data-pb-v521-guest] .pb40-hero__img {
        max-width: 420px;
        max-inline-size: 420px;
    }
}
