.published-page { --published-header: 82px; background: #07101d; }
.published-page.is-loading { cursor: progress; }
.published-header { background: rgba(4,14,27,.68); backdrop-filter: blur(18px); }
.published-gallery-button { justify-self: start; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.1); color: white; display: grid; place-items: center; transition: transform .35s var(--ease), background .25s; }
.published-gallery-button:hover, .published-gallery-button:focus-visible { background: var(--blue); transform: rotate(7deg); outline: none; }
.published-gallery-button svg { width: 18px; height: 18px; fill: currentColor; }
.published-links-button { justify-self: end; min-height: 42px; padding: 0 18px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; color: white; display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 9px; font-weight: 800; letter-spacing: .14em; transition: background .25s, border-color .25s, transform .25s; }
.published-links-button:hover, .published-links-button:focus-visible { border-color: var(--blue); background: var(--blue); transform: translateY(-2px); outline: none; }
.published-story { height: 100svh; }
.published-story .chapter { height: 100svh; min-height: 100svh; max-height: 100svh; }
.published-story .chapter-inner.structured-layout > .structured-content:only-child {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(100%, 1050px);
  max-width: 100%;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.published-story [contenteditable] { cursor: default; outline: none; }
.published-story .guest-editable:hover, .published-story .guest-editable:focus { outline-color: transparent; background: transparent; box-shadow: none; }
.published-story .guest-editable:empty::before { content: none; }
.published-progress { z-index: 58; }
.published-loading { position: fixed; z-index: 120; inset: 0; background: #07101d; color: white; display: grid; place-items: center; align-content: center; gap: 19px; transition: opacity .5s var(--ease), visibility .5s; }
.published-loading img { width: 210px; }
.published-loading span { font-size: 9px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; opacity: .62; }
.published-loading i { width: 170px; height: 2px; background: rgba(255,255,255,.12); overflow: hidden; }
.published-loading i::after { content: ''; display: block; width: 52%; height: 100%; background: var(--blue); animation: published-load 1.05s var(--ease) infinite; }
@keyframes published-load { from { transform: translateX(-110%); } to { transform: translateX(220%); } }
.published-page.is-ready .published-loading { opacity: 0; visibility: hidden; pointer-events: none; }
.published-error { position: fixed; z-index: 125; inset: 0; padding: 32px; background: radial-gradient(circle at 70% 20%, rgba(36,152,237,.2), transparent 34%), #07101d; color: white; display: grid; place-content: center; text-align: center; }
.published-error p { color: var(--blue-bright); font-size: 9px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.published-error h1 { max-width: 720px; margin: 15px 0 30px; font: 700 clamp(46px,8vw,108px)/.9 'EventSans',sans-serif; letter-spacing: -.065em; }
.published-error a { justify-self: center; padding: 15px 22px; border-radius: 999px; background: var(--blue); color: white; text-decoration: none; font-weight: 750; }
.published-page.has-error .site-header, .published-page.has-error .published-progress, .published-page.has-error .published-loading { display: none; }

.published-page.is-custom-public-host .published-header {
  grid-template-columns: 1fr;
  justify-items: center;
}
.published-page.is-custom-public-host .published-gallery-button,
.published-page.is-custom-public-host .published-links-button { display: none; }
.published-owner-bar {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: clamp(16px, 1.8vw, 34px);
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateY(-50%);
}
.published-owner-bar a {
  min-height: 36px;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: background .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.published-owner-bar a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.published-owner-bar .published-owner-edit {
  padding: 0 15px;
  background: var(--blue);
  box-shadow: 0 8px 24px rgba(36,152,237,.28);
}
.published-owner-bar .published-owner-edit:hover { background: #43aaf2; transform: translateY(-1px); }
.published-owner-bar .published-owner-dashboard {
  width: 36px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.24);
  background: rgba(255,255,255,.08);
}
.published-owner-bar .published-owner-dashboard:hover { border-color: rgba(255,255,255,.48); background: rgba(255,255,255,.16); transform: translateY(-1px); }
.published-owner-bar svg { width: 15px; height: 15px; fill: currentColor; }

@media (max-width: 700px) {
  .published-header { padding: 0 16px; }
  .published-header .brand img { width: 142px; }
  .published-header .brand span { display: none; }
  .published-links-button { width: 46px; padding: 0; justify-content: center; font-size: 0; }
  .published-links-button span { font-size: 16px; }
  .published-owner-bar { right: max(10px, env(safe-area-inset-right)); gap: 6px; }
  .published-owner-bar .published-owner-edit { min-height: 34px; padding: 0 10px; font-size: 8px; }
  .published-owner-bar .published-owner-dashboard { width: 34px; min-height: 34px; }
  .published-page.has-published-owner-bar .published-header .brand img { width: 116px; }
}

@media (prefers-reduced-motion: reduce) {
  .published-loading i::after { animation-duration: .01ms; }
}
