/* On-site CMS editor (staff only) */
body.usher-cms-editing {
  padding-top: 58px;
}

.usher-cms-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10050;
  background: linear-gradient(90deg, #1a0148, #2a017b);
  color: #fff;
  box-shadow: 0 8px 24px rgba(26, 1, 72, 0.28);
}

.usher-cms-bar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.7rem 1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.usher-cms-bar__left {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.92rem;
}

.usher-cms-bar__mark {
  appearance: none;
  border: 0;
  display: inline-flex;
  align-items: center;
  background: #c9a227;
  color: #1a0148;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  font-family: inherit;
}

.usher-cms-bar__mark:hover {
  filter: brightness(1.05);
}

.usher-cms-bar__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.usher-cms-btn {
  appearance: none;
  border: 0;
  border-radius: 8px;
  padding: 0.45rem 0.85rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.usher-cms-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.usher-cms-btn--ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.usher-cms-btn--gold {
  background: #c9a227;
  color: #1a0148;
}

.usher-cms-btn--primary {
  background: #2a017b;
  color: #fff;
}

.usher-cms-btn--danger {
  background: #f8e8e6;
  color: #b42318;
}

.usher-cms-btn--small {
  padding: 0.35rem 0.65rem;
  font-size: 0.8rem;
}

.usher-cms-btn--ghost.usher-cms-btn--small {
  border: 1px solid rgba(42, 1, 123, 0.18);
  color: #2a017b;
  background: #fff;
}

.usher-cms-editable-block {
  outline: 1px dashed transparent;
  transition: outline-color 0.15s ease;
}

.usher-cms-editable-block:hover {
  outline-color: rgba(42, 1, 123, 0.35);
}

.usher-cms-inline-tools {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 40;
  display: flex;
  gap: 0.4rem;
  opacity: 1;
  pointer-events: auto;
}

.usher-cms-fab {
  border: 0;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  background: #2a017b;
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  box-shadow: 0 8px 20px rgba(42, 1, 123, 0.25);
  cursor: pointer;
}

.usher-cms-fab--danger {
  background: #b42318;
}

.usher-cms-fab--history {
  background: #3a3355;
}

.usher-cms-version-list {
  display: grid;
  gap: 0.75rem;
}

.usher-cms-version-card {
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(42, 1, 123, 0.12);
  border-radius: 14px;
  background: #faf9fc;
}

.usher-cms-version-card__main {
  min-width: 0;
  flex: 1;
}

.usher-cms-version-card__main strong {
  color: #1a0148;
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  flex-wrap: wrap;
}

.usher-cms-version-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  background: #e8e2f6;
  color: #2a017b;
}

.usher-cms-version-card .usher-cms-muted {
  margin: 0.2rem 0 0;
}

.usher-cms-modal--stacked {
  z-index: 10050;
}








.usher-cms-section-card {
  border: 1px solid rgba(42, 1, 123, 0.12);
  border-radius: 14px;
  padding: 0.9rem;
  background: #faf9fc;
}

.usher-cms-section-card h3 {
  margin: 0;
  font-size: 0.98rem;
  color: #2a017b;
}

.usher-cms-muted,
.usher-cms-empty {
  color: #6b6680;
  font-size: 0.85rem;
  margin: 0.25rem 0 0;
}

.usher-cms-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.usher-cms-icon-btn {
  border: 0;
  background: #f1eef8;
  color: #2a017b;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  font-size: 1.2rem;
  cursor: pointer;
}

.usher-cms-modal {
  position: fixed;
  inset: 0;
  z-index: 10060;
  background: rgba(12, 6, 32, 0.58);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: end center;
  padding: 0;
}

@supports (height: 100dvh) {
  .usher-cms-modal {
    min-height: 100dvh;
  }
}

@media (min-width: 720px) {
  .usher-cms-modal {
    place-items: center;
    padding: 1.25rem;
  }
}

.usher-cms-modal__dialog {
  width: 100%;
  max-width: 560px;
  max-height: min(92vh, 920px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.28);
  animation: usherCmsSheetIn 0.22s ease;
}

@media (min-width: 720px) {
  .usher-cms-modal__dialog {
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    animation: usherCmsConfirmIn 0.22s ease;
  }
}

.usher-cms-modal__dialog--wide {
  max-width: 720px;
}

.usher-cms-core-values-form {
  gap: 0.75rem;
}

.usher-cms-value-card {
  display: grid;
  gap: 0.65rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(42, 1, 123, 0.12);
  border-radius: 14px;
  background: #faf9fc;
}

.usher-cms-value-card h3 {
  margin: 0;
  font-size: 0.95rem;
  color: #1a0148;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.usher-cms-value-card__index {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b6680;
}

.usher-cms-field__compact,
.usher-cms-value-card textarea {
  min-height: 72px !important;
}

@keyframes usherCmsSheetIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.usher-cms-modal__head,
.usher-cms-modal__foot {
  flex-shrink: 0;
  padding: 1rem 1.15rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  background: #fff;
}

.usher-cms-modal__head {
  border-bottom: 1px solid rgba(42, 1, 123, 0.1);
}

.usher-cms-modal__foot {
  border-top: 1px solid rgba(42, 1, 123, 0.1);
  justify-content: stretch;
  gap: 0.65rem;
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
}

.usher-cms-modal__foot .usher-cms-btn {
  flex: 1;
  min-height: 44px;
}

.usher-cms-modal__head h2 {
  margin: 0;
  color: #1a0148;
  font-size: 1.2rem;
  line-height: 1.25;
}

.usher-cms-modal__sub {
  margin: 0.3rem 0 0;
  color: #6b6680;
  font-size: 0.88rem;
  line-height: 1.4;
}

.usher-cms-modal__body {
  padding: 1rem 1.15rem 1.25rem;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  display: grid;
  gap: 1rem;
  flex: 1;
  overscroll-behavior: contain;
}

.usher-cms-fields {
  display: grid;
  gap: 0.9rem;
}

.usher-cms-form-grid {
  display: grid;
  gap: 0.9rem;
}

@media (min-width: 640px) {
  .usher-cms-form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.usher-cms-field {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
}

.usher-cms-field label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #5b5473;
}

.usher-cms-field input,
.usher-cms-field textarea,
.usher-cms-field select {
  width: 100%;
  border: 1px solid rgba(42, 1, 123, 0.14);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  font: inherit;
  font-size: 1rem;
  background: #faf9fc;
  color: #1f1933;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.usher-cms-field input:focus,
.usher-cms-field textarea:focus,
.usher-cms-field select:focus {
  outline: none;
  border-color: rgba(42, 1, 123, 0.45);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(42, 1, 123, 0.12);
}

.usher-cms-field textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.45;
}

.usher-cms-check {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  font-weight: 600;
}

.usher-cms-hero-intro {
  margin: 0;
  color: #5b5473;
  font-size: 0.92rem;
  line-height: 1.45;
}

.usher-cms-slide-tabs {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.usher-cms-slide-tab {
  appearance: none;
  border: 1px solid rgba(42, 1, 123, 0.14);
  background: #fff;
  color: #2a017b;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  flex: 0 0 auto;
}

.usher-cms-slide-tab.is-active {
  background: #2a017b;
  border-color: #2a017b;
  color: #fff;
}

.usher-cms-hero-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.usher-cms-hero-slide {
  border: 1px solid rgba(42, 1, 123, 0.1);
  border-radius: 16px;
  padding: 1rem;
  background: linear-gradient(180deg, #fcfbfe, #f6f3fb);
  display: grid;
  gap: 0.9rem;
}

.usher-cms-hero-slide__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.usher-cms-hero-slide h3 {
  margin: 0;
  color: #2a017b;
  font-size: 1rem;
}

.usher-cms-image-field .usher-cms-image-card {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .usher-cms-image-field .usher-cms-image-card {
    grid-template-columns: 148px 1fr;
    align-items: start;
  }
}

.usher-cms-thumb-wrap {
  position: relative;
  width: 100%;
  min-height: 120px;
  border-radius: 14px;
  overflow: hidden;
  background: #eeeaf8;
  border: 1px solid rgba(42, 1, 123, 0.1);
}

@media (min-width: 640px) {
  .usher-cms-thumb-wrap {
    width: 148px;
    min-height: 108px;
  }
}

.usher-cms-thumb {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  background: #f4f5f8;
}

@media (min-width: 640px) {
  .usher-cms-thumb {
    height: 108px;
  }
}

.usher-cms-thumb-empty {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 120px;
  color: #6b6680;
  font-size: 0.86rem;
  padding: 1rem;
  text-align: center;
}

@media (min-width: 640px) {
  .usher-cms-thumb-empty {
    min-height: 108px;
  }
}

.usher-cms-image-card__meta {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
}

.usher-cms-image-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.usher-cms-image-actions .usher-cms-btn {
  min-height: 40px;
}

.usher-cms-modal .usher-cms-btn--ghost,
.usher-cms-btn--quiet {
  background: #fff;
  border: 1px solid rgba(42, 1, 123, 0.18);
  color: #2a017b;
}

.usher-cms-btn--quiet:hover {
  background: #f4f1fa;
}

.usher-cms-btn--danger-solid {
  background: #b42318;
  color: #fff;
}

.usher-cms-btn--danger-solid:hover {
  background: #912018;
}

.usher-cms-modal--confirm {
  background: rgba(16, 8, 40, 0.62);
  backdrop-filter: blur(2px);
  place-items: center;
  padding: 1rem;
}

.usher-cms-confirm {
  width: min(420px, 100%);
  padding: 1.6rem 1.5rem 1.35rem;
  text-align: center;
  animation: usherCmsConfirmIn 0.22s ease;
  border-radius: 20px;
  max-height: none;
}

@keyframes usherCmsConfirmIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.usher-cms-confirm__visual {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.usher-cms-confirm__mark {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
  color: #912018;
  background: radial-gradient(circle at 30% 25%, #fff7f5, #f8e4e0);
  border: 1px solid rgba(180, 35, 24, 0.18);
  box-shadow: 0 10px 24px rgba(180, 35, 24, 0.12);
}

.usher-cms-confirm__copy h2 {
  margin: 0;
  color: #1a0148;
  font-size: 1.28rem;
  line-height: 1.25;
}

.usher-cms-confirm__message {
  margin: 0.55rem 0 0;
  color: #3a3355;
  font-size: 0.98rem;
  line-height: 1.45;
}

.usher-cms-confirm__note {
  margin: 0.85rem 0 0;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: #f6f3fb;
  border: 1px solid rgba(42, 1, 123, 0.08);
  color: #5b5473;
  font-size: 0.86rem;
  line-height: 1.45;
}

.usher-cms-confirm__actions {
  display: flex;
  gap: 0.55rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.35rem;
}

.usher-cms-confirm__actions .usher-cms-btn {
  min-width: 132px;
}

.usher-cms-media-toolbar {
  margin-bottom: 0.75rem;
}

.usher-cms-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 0.65rem;
}

.usher-cms-media-tile {
  border: 1px solid rgba(42, 1, 123, 0.12);
  background: #fff;
  border-radius: 12px;
  padding: 0.4rem;
  cursor: pointer;
  text-align: left;
}

.usher-cms-media-tile img {
  width: 100%;
  height: 88px;
  object-fit: cover;
  border-radius: 8px;
  background: #f4f5f8;
}

.usher-cms-media-tile span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: #3a3355;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.usher-cms-media-picker .usher-cms-modal__dialog {
  max-width: 720px;
}

.usher-cms-image-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  align-items: start;
}

@media (min-width: 640px) {
  .usher-cms-image-row {
    grid-template-columns: 148px 1fr;
  }
}

.usher-cms-image-row > div {
  display: grid;
  gap: 0.45rem;
}

.usher-cms-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: #1a0148;
  color: #fff;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  z-index: 10070;
  opacity: 0;
  transition: 0.2s ease;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.usher-cms-toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.usher-cms-toast.is-error {
  background: #b42318;
}

.usher-cms-reopen {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10050;
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1.1rem;
  background: #2a017b;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(42, 1, 123, 0.3);
  cursor: pointer;
}

@media (max-width: 767px) {
}
