/* Temporary public demo chrome — easy to delete with /demo feature. */

.demo-chrome{
  position: sticky;
  top: 0;
  z-index: 1040;
  background: #12324a;
  color: #f4f7fa;
  box-shadow: 0 1px 0 rgba(0,0,0,.12);
}

.demo-banner{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem 1rem;
  padding: .65rem 1rem;
  max-width: 1100px;
  margin: 0 auto;
}

.demo-banner-label{
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  background: #c9a227;
  color: #1a2a38;
  padding: .28rem .65rem;
  border-radius: .35rem;
}

.demo-banner-note{
  flex: 1 1 12rem;
  font-size: .9rem;
  opacity: .92;
}

.demo-banner-exit{
  white-space: nowrap;
  border-color: rgba(255,255,255,.55) !important;
  color: #fff !important;
}

.demo-banner-exit:hover,
.demo-banner-exit:focus-visible{
  background: rgba(255,255,255,.12) !important;
  color: #fff !important;
}

.demo-nav{
  display: flex;
  gap: .15rem;
  overflow-x: auto;
  padding: 0 .5rem .55rem;
  max-width: 1100px;
  margin: 0 auto;
  -webkit-overflow-scrolling: touch;
}

.demo-nav-link{
  flex: 0 0 auto;
  color: rgba(255,255,255,.82);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 600;
  padding: .45rem .75rem;
  border-radius: .4rem;
  white-space: nowrap;
}

.demo-nav-link:hover,
.demo-nav-link:focus-visible{
  color: #fff;
  background: rgba(255,255,255,.1);
}

.demo-nav-link.is-active{
  color: #12324a;
  background: #e8eef3;
}

.demo-page,
.demo-app-surface{
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 0 2.5rem;
}

.demo-page--home{
  padding-left: 1rem;
  padding-right: 1rem;
}

.demo-hero{
  text-align: center;
  padding: 1.5rem 0 1rem;
}

.demo-kicker{
  margin: 0 0 .35rem;
  color: #1a3d5c;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .78rem;
}

.demo-title,
.demo-section-header h1{
  color: #1a3d5c;
  font-weight: 700;
  margin: 0 0 .5rem;
}

.demo-lead,
.demo-section-header p{
  color: #445566;
  max-width: 40rem;
}

.demo-section-header{
  margin-bottom: 1.25rem;
}

.demo-section-header p{
  margin-bottom: .4rem;
}

.demo-mode-pill{
  display: inline-block;
  margin-top: .75rem;
  padding: .35rem .75rem;
  border-radius: 999px;
  background: #fff4d1;
  color: #6a5200;
  font-weight: 700;
  font-size: .85rem;
}

.demo-readonly-note{
  color: #7a5b12;
  background: #fff8e6;
  border: 1px solid #f0dfb0;
  border-radius: .4rem;
  padding: .45rem .7rem;
  font-size: .9rem;
  display: inline-block;
}

.demo-readonly-note--inline{
  display: block;
  margin: 0 0 1rem;
}

.demo-section-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.demo-section-card{
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #d7e0e8;
  border-radius: .75rem;
  padding: 1.1rem 1.15rem;
  box-shadow: 0 1px 0 rgba(26,61,92,.04);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.demo-section-card:hover,
.demo-section-card:focus-visible{
  border-color: #1a3d5c;
  box-shadow: 0 8px 24px rgba(26,61,92,.08);
  transform: translateY(-1px);
  color: inherit;
}

.demo-section-card h2{
  font-size: 1.15rem;
  color: #1a3d5c;
  margin: 0 0 .4rem;
}

.demo-section-card p{
  margin: 0;
  color: #556677;
  font-size: .95rem;
}

.demo-home-exit{
  text-align: center;
  margin-top: 1.5rem;
}

.demo-action-disabled{
  display: inline-block;
  padding: .25rem .55rem;
  border: 1px dashed #9aa8b5;
  border-radius: .35rem;
  color: #7a8794;
  font-size: .82rem;
  cursor: not-allowed;
  user-select: none;
  opacity: .85;
}

button.demo-action-disabled,
.btn.demo-action-disabled,
.rx-react-btn.demo-action-disabled,
.rx-total-pill.demo-action-disabled,
.prayer-filter-btn.demo-action-disabled,
.prayer-card-menu-btn.demo-action-disabled,
.prayer-card-view-answer-btn.demo-action-disabled,
.prayer-submit-btn.demo-action-disabled,
.closet-settings-gear.demo-action-disabled,
.hub-widget-btn.demo-action-disabled,
.admin-btn-public.demo-action-disabled{
  pointer-events: none;
  cursor: not-allowed;
}

.rx-react-btn.demo-action-disabled,
.rx-total-pill.demo-action-disabled,
.prayer-filter-btn.demo-action-disabled,
.prayer-card-menu-btn.demo-action-disabled,
.prayer-card-view-answer-btn.demo-action-disabled,
.prayer-submit-btn.demo-action-disabled,
.closet-settings-gear.demo-action-disabled,
.hub-widget-btn.demo-action-disabled,
.btn.demo-action-disabled{
  border-style: solid;
  padding: inherit;
  font-size: inherit;
}

span.demo-action-disabled.dd-text-link,
.dd-text-link.demo-action-disabled{
  border: 0;
  padding: 0;
  color: #9aa8b5;
  text-decoration: none;
}

.demo-answered-block{
  margin-top: 2rem;
}

.demo-subtitle{
  color: #1a3d5c;
  font-size: 1.25rem;
  margin: 0 0 .85rem;
}

.demo-devotional-archive{
  margin-top: 1.5rem;
  padding-top: .5rem;
}

.demo-archive-list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .65rem;
}

.demo-archive-list li{
  background: #fff;
  border: 1px solid #d7e0e8;
  border-radius: .55rem;
  padding: .75rem .9rem;
  display: grid;
  gap: .15rem;
}

.demo-archive-date{
  font-size: .82rem;
  color: #667788;
}

.demo-member-nav{
  background: #fff;
  border: 1px solid #d7e0e8;
  border-radius: .65rem;
  padding: .35rem .65rem;
  margin-bottom: 1rem;
}

.demo-member-nav-list{
  width: 100%;
  align-items: center;
}

.demo-member-nav .nav-link{
  color: #1a3d5c;
  font-weight: 600;
  font-size: .92rem;
  padding: .4rem .65rem;
  border-radius: .4rem;
}

.demo-member-nav .nav-link.active,
.demo-member-nav .nav-link:hover,
.demo-member-nav .nav-link:focus-visible{
  background: #e8eef3;
  color: #12324a;
}

.demo-nav-muted{
  color: #8a97a4 !important;
  cursor: not-allowed;
}

.demo-member-chip{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: #1a3d5c;
  color: #fff !important;
  font-size: .78rem;
  font-weight: 700;
  padding: 0 .55rem !important;
}

.demo-church-initial{
  margin: 0 auto .75rem;
  width: 3.25rem;
  height: 3.25rem;
  font-size: 1.35rem;
}

.demo-feature-list{
  display: grid;
  gap: .65rem;
}

.demo-feature-item{
  display: grid;
  gap: .1rem;
}

.demo-feature-item a{
  color: #1a3d5c;
  text-decoration: none;
}

.demo-feature-item a:hover,
.demo-feature-item a:focus-visible{
  text-decoration: underline;
}

.demo-admin-link-muted{
  opacity: .72;
  cursor: not-allowed;
}

.admin-sidebar-link.is-active,
a.admin-sidebar-link.is-active{
  background: rgba(26, 61, 92, .08);
  color: #12324a;
  font-weight: 700;
}

.demo-admin-table .demo-action-disabled + .demo-action-disabled{
  margin-left: .35rem;
}

.demo-member-list li:last-child{
  border-bottom: 0 !important;
}

.rx-encouragements-demo-list{
  margin-top: .45rem;
}

.rx-encouragements-demo-list .rx-encouragement-item{
  font-size: .86rem;
  margin-bottom: .35rem;
}

/* Closet preview sits under sticky chrome */
.demo-closet{
  min-height: calc(100vh - 7.5rem);
}

.demo-closet .closet-seq-actions{
  max-width: 22rem;
  margin-inline: auto;
}

.demo-closet-settings .closet-settings-gear{
  opacity: .85;
}

/* Prayer tabs used as visual labels in demo */
.demo-readonly .prayer-tabs .prayer-tab[aria-disabled="true"]{
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
}

@media (max-width: 800px){
  .demo-banner{
    padding: .7rem .85rem;
  }

  .demo-banner-exit{
    width: 100%;
    text-align: center;
  }

  .demo-page,
  .demo-app-surface{
    padding: 1rem 0 2rem;
  }

  .demo-page--home{
    padding-left: .85rem;
    padding-right: .85rem;
  }

  .demo-member-nav .nav-link{
    font-size: .84rem;
    padding: .35rem .5rem;
  }
}
