/*
 * Guest listing access, stage `gate`: what a viewer who does not see website names gets in
 * place of listing rows (design docs/superpowers/specs/2026-11-19-guest-listing-access-design.md §6).
 *
 *   .lg-gate      <x-gpn.listing-gate>: live totals, the line and buttons for the viewer's state
 *   .lg-example   <x-gpn.listing-example>: six invented rows on the reserved ending .example
 *   .lg-card      sunrise/listing/preview.blade.php: the nameless card at a listing URL
 *
 * Plain CSS on the Sunrise tokens (--sr-*, light and dark from :root[data-theme]); nothing here
 * needs sunrise.css rebuilt. Each token carries a fallback so the block also reads on a page
 * that does not load sunrise.css. Linked by the components themselves, versioned by filemtime.
 * Every selector starts with .lg-.
 *
 * A paragraph, heading or list class is written twice (.lg-gate__line.lg-gate__line): sunrise.css
 * resets `.sunrise p`, `.sunrise h1…h6` and `.sunrise ul` to margin 0 at a higher specificity than
 * one class, which took the spacing out of these blocks on every Sunrise page.
 */
.lg-gate{box-sizing:border-box;text-align:start;margin:0 0 24px;padding:20px;border:1px solid var(--sr-line,#dedede);border-radius:var(--sr-radius-card,16px);background:var(--sr-surface,#fff);color:var(--sr-body,#303030);font-family:var(--sr-font-body,inherit);font-size:15px;line-height:1.5;text-align:left}
.lg-gate *,.lg-card *{box-sizing:border-box}
.lg-gate__title.lg-gate__title{margin:0 0 6px;font-family:var(--sr-font-display,inherit);font-size:22px;font-weight:700;line-height:1.25;letter-spacing:-0.01em;color:var(--sr-ink,#111)}
.lg-gate__stats{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 0;padding:0}
.lg-gate__stat{display:flex;flex-direction:column;min-width:104px;margin:0;padding:8px 12px;border-radius:var(--sr-radius-small,8px);background:var(--sr-soft,#f6f6f6)}
.lg-gate__stat dt{order:2;margin:0;font-size:12px;font-weight:500;color:var(--sr-muted,#525252)}
.lg-gate__stat dd{order:1;margin:0;font-family:var(--sr-font-display,inherit);font-size:18px;font-weight:700;color:var(--sr-ink,#111);font-variant-numeric:tabular-nums}
.lg-gate__source.lg-gate__source{margin:8px 0 0;font-size:12px;color:var(--sr-muted,#525252)}
.lg-link{color:var(--sr-link,#496b18);text-decoration:underline;text-underline-offset:3px}
.lg-gate__line.lg-gate__line{margin:14px 0 0;color:var(--sr-body,#303030)}
.lg-gate__line a{color:var(--sr-link,#496b18);text-decoration:underline;text-underline-offset:3px}
.lg-gate__extra.lg-gate__extra{margin:10px 0 0;padding:10px 12px;border-left:3px solid var(--sr-section-line,#b4c79c);background:var(--sr-accent-wash,#f1f7e8);color:var(--sr-ink,#111);font-size:14px}
.lg-gate__actions.lg-gate__actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px 12px;margin:14px 0 0}
.lg-btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 18px;border:1px solid var(--sr-line-strong,#c9c9c9);border-radius:var(--sr-radius-button,10px);background:var(--sr-surface,#fff);color:var(--sr-ink,#111);font-family:var(--sr-font-body,inherit);font-size:15px;font-weight:700;line-height:1.3;text-align:center;text-decoration:none;cursor:pointer}
/* The block sits inside article bodies, profile pages and legacy templates whose own link rules
   (colour, underline) outrank any class here; a button's text must stay readable on its fill. */
.lg-btn,.lg-btn:visited,.lg-btn:hover,.lg-btn:focus{color:var(--sr-ink,#111) !important;text-decoration:none !important}
.lg-btn:hover{background:var(--sr-accent-wash,#f1f7e8)}
.lg-btn--primary{border-color:var(--sr-action,#c2ff6b);background:var(--sr-action,#c2ff6b);color:var(--sr-on-action,#111)}
.lg-btn--primary,.lg-btn--primary:visited,.lg-btn--primary:hover,.lg-btn--primary:focus{color:var(--sr-on-action,#111) !important}
.lg-btn--primary:hover{background:var(--sr-action,#c2ff6b);filter:brightness(0.95)}
.lg-btn:focus-visible,.lg-signin:focus-visible{outline:3px solid var(--sr-ink,#111);outline-offset:2px}
.lg-signin{display:inline-flex;align-items:center;min-height:44px;padding:0 4px;color:var(--sr-link,#496b18);font-weight:600;text-decoration:underline;text-underline-offset:3px}

.lg-example{margin:18px 0 0;border:1px dashed var(--sr-line-strong,#c9c9c9);border-radius:var(--sr-radius-panel,14px);background:var(--sr-soft,#f6f6f6);overflow:hidden}
.lg-example__label.lg-example__label{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0;padding:10px 14px;font-size:13px;color:var(--sr-muted,#525252)}
.lg-example__tag{display:inline-block;padding:2px 10px;border-radius:var(--sr-radius-pill,999px);background:var(--sr-ink,#111);color:var(--sr-surface,#fff);font-size:12px;font-weight:700;letter-spacing:0.06em;text-transform:uppercase}
.lg-example__rows.lg-example__rows{list-style:none;margin:0;padding:0;background:var(--sr-surface,#fff)}
.lg-example__row{display:grid;grid-template-columns:30px minmax(0,1fr) auto minmax(84px,auto);align-items:center;column-gap:14px;row-gap:6px;margin:0;padding:10px 14px;border-top:1px solid var(--sr-line-row,#ececec)}
.lg-example__tile{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:var(--sr-radius-small,8px);background:var(--sr-pill-grey,#ececec);color:var(--sr-pill-text-grey,#303030);font-family:var(--sr-font-display,inherit);font-size:13px;font-weight:700}
.lg-example__site{display:grid;gap:2px;min-width:0}
.lg-example__name{font-family:var(--sr-font-display,inherit);font-size:14px;font-weight:600;color:var(--sr-ink,#111);overflow-wrap:anywhere}
.lg-example__niche{font-size:12px;color:var(--sr-muted,#525252)}
.lg-example__metrics{display:flex;gap:14px}
.lg-example__metric{display:flex;flex-direction:column;align-items:center;min-width:44px;font-size:10px;letter-spacing:0.06em;text-transform:uppercase;color:var(--sr-muted,#525252)}
.lg-example__metric b{font-size:14px;font-weight:700;letter-spacing:0;text-transform:none;color:var(--sr-ink,#111);font-variant-numeric:tabular-nums;white-space:nowrap}
.lg-example__price{justify-self:end;font-size:14px;font-weight:700;color:var(--sr-ink,#111);white-space:nowrap}
.lg-example__note.lg-example__note{margin:0;padding:10px 14px;border-top:1px solid var(--sr-line-row,#ececec);font-size:13px;color:var(--sr-muted,#525252)}

.lg-card{max-width:760px;margin:32px auto 48px;padding:0 16px;color:var(--sr-body,#303030);font-family:var(--sr-font-body,inherit);font-size:15px;line-height:1.5}
.lg-card__panel{text-align:start;padding:24px;border:1px solid var(--sr-line,#dedede);border-radius:var(--sr-radius-card,16px);background:var(--sr-surface,#fff)}
.lg-card__eyebrow.lg-card__eyebrow{margin:0 0 6px;font-size:12px;font-weight:700;letter-spacing:0.08em;text-transform:uppercase;color:var(--sr-muted,#525252)}
.lg-card__title.lg-card__title{margin:0;font-family:var(--sr-font-display,inherit);font-size:26px;font-weight:700;line-height:1.2;letter-spacing:-0.01em;color:var(--sr-ink,#111)}
.lg-card__facts.lg-card__facts{display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin:16px 0 0;padding:0}
.lg-card__fact{display:flex;flex-direction:column;min-width:96px;margin:0;padding:8px 12px;border-radius:var(--sr-radius-small,8px);background:var(--sr-soft,#f6f6f6)}
.lg-card__fact span{order:2;font-size:12px;color:var(--sr-muted,#525252)}
.lg-card__fact b{order:1;font-family:var(--sr-font-display,inherit);font-size:17px;font-weight:700;color:var(--sr-ink,#111);font-variant-numeric:tabular-nums}
.lg-card__price.lg-card__price{margin:18px 0 0;font-family:var(--sr-font-display,inherit);font-size:20px;font-weight:700;color:var(--sr-ink,#111)}
.lg-card__price small{display:block;margin-top:2px;font-family:var(--sr-font-body,inherit);font-size:14px;font-weight:500;color:var(--sr-muted,#525252)}
.lg-card__seller.lg-card__seller{margin:10px 0 0;font-size:14px;color:var(--sr-body,#303030)}
.lg-card__rule{height:1px;margin:20px 0 0;border:0;background:var(--sr-line,#dedede)}
.lg-card__owner.lg-card__owner{margin:16px 0 0;font-size:13px;color:var(--sr-muted,#525252)}
.lg-card__owner a{color:var(--sr-link,#496b18);text-decoration:underline;text-underline-offset:3px}
.lg-card .lg-gate__line{margin-top:18px}

@media (max-width:640px){
    .lg-gate{padding:16px}
    .lg-gate__title.lg-gate__title{font-size:19px}
    .lg-gate__stat{flex:1 1 calc(50% - 8px);min-width:0}
    .lg-gate__actions .lg-btn{flex:1 1 100%}
    .lg-example__row{grid-template-columns:30px minmax(0,1fr) auto;column-gap:10px}
    .lg-example__price{grid-column:3;grid-row:1}
    .lg-example__metrics{grid-column:2 / -1;grid-row:2;gap:12px}
    .lg-example__metric{flex-direction:row;align-items:baseline;gap:4px;min-width:0}
    .lg-card__panel{padding:18px}
    .lg-card__title.lg-card__title{font-size:21px}
    .lg-card__fact{flex:1 1 calc(50% - 8px);min-width:0}
}
