/*! companion-rail-icons-v2 · soft dark rail + gold badge icons (screenshot glory)
 * Educational only — not a fatwa.
 */

#clarity-door-rail.cs-door,
.cs-door#clarity-door-rail {
  position: sticky;
  bottom: 0;
  z-index: 50;
  display: flex;
  gap: 0.35rem;
  padding: 0.4rem 0.4rem calc(0.45rem + env(safe-area-inset-bottom, 0px));
  background: rgba(8, 14, 12, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(212, 180, 90, 0.2);
  box-shadow: 0 -8px 28px rgba(0,0,0,0.4);
}

.cs-door .cs-door-btn {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.22rem;
  padding: 0.4rem 0.2rem 0.35rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(18, 28, 24, 0.95);
  color: rgba(247,240,221,0.78);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background .15s, border-color .15s, color .15s, transform .12s;
}

/* Gold circular badge for icon */
.cs-door .cs-door-btn .dr-ico {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  line-height: 1;
  background: radial-gradient(circle at 35% 30%, #3d5c4a, #1a2e24 70%);
  border: 1.5px solid rgba(212, 180, 90, 0.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 2px 6px rgba(0,0,0,0.35);
  color: #e8d48b;
  filter: none;
}
.cs-door .cs-door-btn .dr-ico > * { display: none !important; }
.cs-door .cs-door-btn .dr-ico::before {
  font-family: "Segoe UI Symbol", "Apple Color Emoji", "Noto Sans Symbols", sans-serif;
}

.cs-door .cs-door-btn[data-rail-tab="reminder"] .dr-ico::before { content: "🕯"; } /* lantern / light */
.cs-door .cs-door-btn[data-rail-tab="reality"] .dr-ico::before { content: "🏛"; } /* arch / seerah structure */
.cs-door .cs-door-btn[data-rail-tab="reflection"] .dr-ico::before { content: "☾"; }
.cs-door .cs-door-btn[data-rail-tab="action"] .dr-ico::before { content: "▶"; }
.cs-door .cs-door-btn[data-rail-tab="notes"] .dr-ico::before { content: "☰"; }
.cs-door .cs-door-btn[data-rail-tab="about"] .dr-ico::before { content: "ℹ"; }

/* Active = soft green pill like screenshot */
.cs-door .cs-door-btn.is-active {
  background: linear-gradient(180deg, #2a6b4a, #1e5238);
  border-color: rgba(120, 200, 150, 0.45);
  color: #f7f0dd;
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(212,180,90,0.15), 0 6px 16px rgba(0,0,0,0.3);
}
.cs-door .cs-door-btn.is-active .dr-ico {
  background: radial-gradient(circle at 35% 30%, #5a8f6e, #2a4d38 70%);
  border-color: rgba(232, 212, 139, 0.75);
  color: #f5e6a8;
}

#cs-mount { padding-bottom: 5.5rem; }
