/* Shared segmented control: Dark / Sunlit (marketing + Hashira) */
.jg-theme-switch {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--line, rgba(214, 175, 92, 0.22));
  background: var(--panel, rgba(255, 248, 235, 0.1));
  padding: 3px;
  gap: 2px;
  flex-shrink: 0;
}
.jg-theme-switch__btn {
  border: none;
  background: transparent;
  color: var(--muted, #d8cfc0);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.jg-theme-switch__btn[aria-pressed="true"] {
  background: rgba(201, 151, 63, 0.22);
  color: var(--text, #f7f2ea);
  box-shadow: 0 1px 10px rgba(201, 151, 63, 0.12);
}
html[data-theme="sunlit"] .jg-theme-switch__btn[aria-pressed="true"] {
  background: rgba(27, 111, 168, 0.15);
  color: var(--text, #1a1a1e);
  box-shadow: 0 1px 10px rgba(27, 111, 168, 0.1);
}

/* Compact icon strip (marketing nav) — not pill labels */
.jg-theme-switch--icon {
  padding: 2px;
  gap: 1px;
  border-radius: 9px;
  border: 1px solid var(--line, rgba(214, 175, 92, 0.2));
  background: rgba(0, 0, 0, 0.14);
}

html[data-theme="sunlit"] .jg-theme-switch--icon {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(120, 95, 55, 0.16);
}

.jg-theme-switch__btn--icon {
  padding: 0;
  min-width: 0;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 0;
  line-height: 0;
}

.jg-theme-switch__btn--icon .jg-theme-switch__glyph {
  display: block;
  flex-shrink: 0;
  opacity: 0.92;
}

.jg-theme-switch__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
