/* Access lock (store/237 milestone 4): the lock panel of a Teaser article, video or page, on the live stream's
   not-entitled panel (session-live-stream__mockup in session-detail.css), plus its one button and the variant over a
   video thumbnail. */

.access-lock {
    margin: var(--spacing-lg, 1.5rem) 0;
}

/* Two classes, so these win over session-live-stream__mockup (linked later): the panel grows with its content */
.access-lock .access-lock-panel {
    aspect-ratio: auto;
    min-height: 240px;
    overflow: visible;
}

.access-lock-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    min-width: 44px;
    margin-top: var(--spacing-sm, 0.5rem);
    padding: 0 1.25rem;
    border: none;
    border-radius: 8px;
    background-color: #ffffff;               /* on the always-dark panel surface */
    color: #111827;                           /* 15.9:1 on white */
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.access-lock-button:hover {
    background-color: #f3f4f6;
    color: #111827;
}

.access-lock-button:focus-visible {
    outline: 3px solid var(--community-accent, #7BCED7);
    outline-offset: 3px;
}

.access-lock-button:disabled {
    cursor: wait;
    opacity: 0.8;
}

.access-lock-error {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: var(--spacing-sm, 0.5rem) 0 0;
    color: #fecaca;                           /* red-200 on the dark panel surface */
}

/* Over a video's thumbnail: the image fills the frame, the panel sits over it. The frame is at least 16:9 and grows
   with the panel where its content needs more height (narrow screens, long names, the join error), so nothing is cut */
.access-lock--over-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.access-lock--over-image .access-lock-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.access-lock--over-image .access-lock-panel {
    position: relative;
    aspect-ratio: 16 / 9;
    min-height: auto;                         /* lets the 16:9 box grow to fit its content */
    background: rgba(17, 24, 39, 0.82);       /* the panel's dark surface over the image */
    box-shadow: none;
    border-radius: 0;
}

/* Lock chip among the label chips (decision 90) */
.label-pill--lock {
    background-color: #1f2937;
    color: #ffffff;                           /* 14.7:1 */
}

.label-pill--lock i {
    font-size: 0.7rem;
}

/* Teaser of a custom, composite or standard page (decision 17): its title and image above the lock panel. The title
   takes .composite-page-title's metrics (composite-page-view.css), the image .article-featured-image img's (pages.css) */
.page-teaser-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin: 0 0 1rem 0;
}

h2.page-teaser-title {
    font-size: 1.25rem;
}

.page-builder-content > .page-teaser-title {
    padding: 1.5rem 1.5rem 0;
}

.page-teaser-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* A feed the viewer may not see in full (store/237 milestone 5, decision 108): below the community box, the feed's name,
   its description and the lock panel */
.feed-locked {
    margin: var(--spacing-lg, 1.5rem) 0;
}

.feed-locked-title {
    margin: 0 0 var(--spacing-xs, 0.25rem);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary, #1f2937);
}

.feed-locked-description {
    margin: 0;
    color: var(--text-secondary, #4B5563);
}
