/* Public homepage only. Premium backgrounds are resolved by the existing plan-aware server helper. */
.home-workspace{--card-surface:#181e23;--card-border:#37434b;--card-text:#eef3f4;--card-muted:#a6b6bf}
.home-workspace .home-surface{border-radius:26px;border:1px solid var(--card-border);background:radial-gradient(ellipse at 95% 0,#1f48382b,transparent 60%),var(--card-surface);padding:clamp(20px,3vw,34px);box-shadow:0 8px 30px #0000000a}
.home-workspace .home-section-heading{gap:18px;margin-bottom:25px}.home-workspace .home-section-heading h2{font-size:clamp(22px,2.2vw,28px);font-weight:650;letter-spacing:-.035em;line-height:1.25}.home-workspace .home-eyebrow{letter-spacing:.12em;font-size:10px;font-weight:650}
.home-workspace .home-public-grid{gap:20px;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}
.home-workspace .home-public-card{position:relative;isolation:isolate;display:flex;flex-direction:column;gap:0;min-width:0;overflow:hidden;border:1px solid var(--card-border);border-radius:24px;padding:23px;background:radial-gradient(ellipse at 100% 0,#315a452b,transparent 65%),linear-gradient(135deg,#20272e,#171c22);color:var(--card-text);box-shadow:0 8px 22px #0000000b;transition:border-color .18s,box-shadow .18s}
.home-workspace .home-public-card:focus-within,.home-workspace .home-public-card:hover{border-color:#73867f;box-shadow:0 12px 30px #0002}.home-workspace .home-public-card h3{font-size:19px;letter-spacing:-.025em;line-height:1.4;margin:20px 0 16px}.home-workspace .home-public-card h3 a{color:inherit;text-decoration:none;overflow-wrap:anywhere}.home-workspace .home-public-meta{gap:10px;color:var(--card-muted);font-size:11px}.home-workspace .home-badge{padding:6px 10px;border-radius:9px;font-size:10px;font-weight:650;letter-spacing:.03em;border-color:#84989545;background:#ffffff09;color:inherit}.home-workspace .home-code-snippet{margin:0 0 18px;border:1px solid #8598aa22;border-radius:14px;padding:17px;background:#0e151b;color:#c3d9e0;font:12px/1.85 Consolas,monospace;height:150px;overflow:hidden;white-space:pre;min-width:0}.home-workspace .home-code-snippet code{font:inherit;text-shadow:none;color:inherit}.home-workspace .home-preview-cover{border-radius:14px;margin:0 0 16px;aspect-ratio:16/9;object-fit:cover;width:100%}.home-workspace .home-public-footer{border-top:1px solid #91a29d33;padding-top:17px;margin-top:auto;gap:12px;min-height:55px}.home-workspace .home-author{gap:9px;max-width:65%;color:inherit;font-size:12px}.home-workspace .home-author span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.home-workspace .home-public-footer>.home-text-link{font-size:12px;white-space:nowrap;color:#d9c881}.home-workspace .home-public-card :is(a,button):focus-visible{outline:2px solid #e0c769;outline-offset:4px}
.home-workspace .home-public-card.has-premium-paste-background{background:var(--premium-paste-background)!important;color:var(--premium-paste-color,#fff);border-color:color-mix(in srgb,var(--premium-paste-accent,#d6c176) 45%,#69776c)}
.home-workspace .home-public-card.has-premium-paste-background::before{content:'';position:absolute;inset:0;background-image:var(--premium-paste-image-still,var(--premium-paste-image,none));background-size:cover;background-position:center;pointer-events:none;z-index:-2}
.home-workspace .home-public-card.has-premium-paste-background::after{content:'';position:absolute;inset:0;background:var(--premium-paste-overlay,linear-gradient(140deg,#07141b35,#07141b9c));pointer-events:none;z-index:-1}
.home-workspace .has-premium-paste-background .home-public-meta{color:var(--premium-paste-muted,inherit)}.home-workspace .has-premium-paste-background .home-public-footer>.home-text-link{color:var(--premium-paste-accent,#e0c76a)}.home-workspace .has-premium-paste-background .home-code-snippet{background:#081018c4;color:#e3edf1;border-color:#c9e0e82e}
html.light-theme .home-workspace{--card-surface:#fff;--card-border:#d9e1e5;--card-text:#1b2c39;--card-muted:#627684}html.light-theme .home-workspace .home-public-card:not(.has-premium-paste-background){background:radial-gradient(ellipse at 100% 0,#dfeee980,transparent 60%),#fff}html.light-theme .home-workspace .home-public-card:not(.has-premium-paste-background) .home-code-snippet{background:#f0f5f8;color:#344c5e}html.light-theme .home-workspace .home-public-card:not(.has-premium-paste-background) .home-public-footer>.home-text-link{color:#486947}
@media(max-width:1100px){.home-workspace .home-public-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:680px){.home-workspace .home-public-grid{grid-template-columns:minmax(0,1fr);gap:16px}.home-workspace .home-surface{padding:19px 16px;border-radius:23px}.home-workspace .home-public-card{padding:21px;border-radius:22px}.home-workspace .home-section-heading{align-items:flex-start;flex-wrap:wrap}.home-workspace .home-public-card h3{font-size:20px}}
@media(prefers-reduced-motion:reduce){.home-workspace .home-public-card{transition:none}}
/* The light-theme audit supplies generic premium overlays; this component keeps the author's own palette. */
html.light-theme:not(.admin-theme-dark) body .home-workspace .home-public-card.has-premium-paste-background[class][class]::after{background:var(--premium-paste-overlay,linear-gradient(140deg,#07141b35,#07141b9c))!important}
.home-workspace .home-public-card h3 a{color:var(--card-text)!important}
:root body .home-workspace .home-public-card.has-premium-paste-background h3 a{color:var(--premium-paste-color,#fff)!important}
.home-workspace .home-public-card.has-premium-paste-background .home-public-meta{color:var(--premium-paste-muted,#d8e3e8)!important}
.home-workspace .home-public-card .home-author{border:0!important;background:transparent!important;padding:0!important;color:var(--card-text)!important;box-shadow:none!important}
:root body .home-workspace .home-public-card.has-premium-paste-background .home-author{color:var(--premium-paste-color,#fff)!important}
:root body .home-workspace .home-public-card.has-premium-paste-background .home-public-meta time{color:var(--premium-paste-muted,#d8e3e8)!important}
.home-workspace .home-gallery-filters .home-field{border:0!important;background:transparent!important;padding:0!important;box-shadow:none!important}
.home-workspace #public-posts>.home-muted{border:0!important;background:transparent!important;box-shadow:none!important;padding:0!important}
