/* Legacy header rules hide its first non-CTA link; the explicit publisher action is exempt. */
html[data-theme] body > .site-header nav a.header-story-add{display:inline-flex!important;align-items:center;justify-content:center;width:40px;height:40px;flex:0 0 40px;color:inherit;text-decoration:none;border-radius:50%;font:400 32px/1 sans-serif}
.header-story-add:hover,.header-story-add:focus-visible{background:color-mix(in srgb,currentColor 12%,transparent)}
html[data-theme="light"] body.page-home .site-header:not(.is-scrolled) nav a.header-story-add{color:#fff!important}
.story-composer{box-sizing:border-box;width:min(100%,800px);margin-inline:auto;padding:1.5rem 1rem 2rem}
.story-composer h1{text-align:left}.story-composer form{display:grid;gap:1rem;margin-block:1rem}.story-composer input[type=file]{max-width:100%}
.story-composer progress{width:100%;accent-color:#a729e6}.story-composer__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:1rem}
.story-composer__grid figure{margin:0}.story-composer__grid img{width:100%;height:260px;object-fit:contain;border-radius:12px;background:#17101e}
.advertiser-announcements{box-sizing:border-box;max-width:800px;margin:1rem auto;padding-inline:1rem}.advertiser-announcements summary{cursor:pointer;font-weight:700}.advertiser-announcements__rail{display:flex;gap:1rem;overflow-x:auto;padding-block:.75rem}
.advertiser-announcements img{width:180px;height:280px;object-fit:contain;border-radius:12px;background:#17101e}
/* Private admin messages use the existing story rail/viewer, with a red ring. */
html[data-theme] body .listing-story--admin .listing-story__ring{border-color:#ef4444;background:repeating-conic-gradient(from -90deg,#ef4444 0 calc(var(--story-segment) - 5deg),transparent calc(var(--story-segment) - 5deg) var(--story-segment));box-shadow:0 0 0 .18rem rgb(239 68 68 / .16);filter:none;opacity:1}
html[data-theme] body .listing-story--admin .listing-story__ring[style*="--story-count:1"]{border:1px solid #ef4444;background:linear-gradient(135deg,#fb7185,#dc2626)}
.listing-story-viewer [data-story-profile][href="#"]{display:none!important}

/* Publisher: scoped to the composer, not the public story rail. */
html[data-theme] body #contenido .story-composer{width:100%;max-width:46rem;min-width:0;padding:1rem 1rem 1.5rem;margin-inline:auto;overflow-wrap:anywhere}
html[data-theme] body #contenido .story-composer h1{margin:0 0 .65rem;font-size:clamp(1.5rem,5.5vw,2rem);line-height:1.15;text-align:left}
.story-composer__head>p{margin:.5rem 0;font-size:.95rem;line-height:1.5}
.story-composer__audience{display:inline-flex;max-width:100%;padding:.35rem .65rem;border:1px solid var(--g3-border);border-radius:999px;font-size:.78rem;color:var(--g3-muted)}
html[data-theme] body #contenido .story-composer form{min-width:0;max-width:100%;gap:.65rem;margin:1.1rem 0 0}
.story-composer .story-file-picker{position:relative;display:flex;align-items:center;justify-content:center;gap:1rem;box-sizing:border-box;min-height:140px;min-width:0;padding:1rem;border:1px dashed var(--g3-brand-light);border-radius:.85rem;background:var(--g3-surface);cursor:pointer;text-align:center}
html[data-theme] body #contenido .story-composer .story-file-picker input[type=file]{position:absolute;width:1px!important;height:1px;min-width:0;min-height:0;padding:0;opacity:0;overflow:hidden}
.story-file-picker:focus-within{outline:2px solid var(--g3-focus);outline-offset:3px}
.story-file-picker [data-story-preview][hidden]{display:none!important}
.story-file-picker:hover{border-style:solid}
.story-file-picker__copy{display:grid;gap:.35rem;min-width:0}
.story-file-picker__icon{font-size:2rem;line-height:1;color:var(--g3-brand-light)}
.story-file-picker [data-story-file-name]{font-size:.8rem;color:var(--g3-muted);overflow-wrap:anywhere;line-height:1.4}
.story-file-picker [data-story-preview]:not([hidden]){display:block;width:104px;height:140px;flex:0 0 104px;object-fit:contain;border-radius:.5rem;background:var(--g3-paper)}
.story-file-picker.has-file{text-align:left;justify-content:flex-start}
.story-file-picker.has-file .story-file-picker__icon{display:none}
.story-composer #story-file-help{font-size:.75rem;line-height:1.45;color:var(--g3-muted)}
html[data-theme] body #contenido .story-composer .button{box-sizing:border-box;width:100%;max-width:100%;min-width:0;min-height:44px;white-space:normal;text-align:center;padding:.75rem;font-size:.82rem;letter-spacing:.03em}
.story-composer button:disabled{opacity:.55;cursor:default}
.story-composer [data-story-status]{margin:0;font-size:.85rem;line-height:1.4}
.story-composer [data-story-status]:empty{display:none}
.story-composer [data-story-status][data-error="true"]{color:var(--g3-danger)}
html[data-theme] body #contenido .story-composer .story-composer__review{display:flex;align-items:center;justify-content:center;margin:1rem 0 1.5rem;background:transparent;color:var(--g3-ink)}
.story-composer h2{font-family:var(--g3-sans);font-size:1.1rem;line-height:1.3;margin:1.5rem 0 .75rem}
.story-composer .story-composer__grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:.65rem}
.story-composer .story-composer__grid figure{min-width:0;padding:.5rem;border:1px solid var(--g3-border);border-radius:.75rem;background:var(--g3-surface)}
.story-composer .story-composer__grid img{display:block;box-sizing:border-box;width:100%;height:112px;object-fit:contain;border-radius:.45rem;background:var(--g3-paper)}
.story-composer figcaption{margin-top:.5rem;color:var(--g3-muted);font-size:.75rem;line-height:1.4}
@media(max-width:379px){.story-composer .story-composer__grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:760px){.story-composer .story-composer__grid{grid-template-columns:repeat(5,minmax(0,1fr))}.story-composer .story-composer__grid img{height:128px}}
/* Home rail aligns with the inset content instead of bleeding to the screen edge. */
@media(max-width:759px){html body.page-home .city-page>.listing-stories{box-sizing:border-box;width:calc(100% - 2rem);max-width:100%;margin-inline:1rem;}}
