body.sehaj-reader .site-footer { display: none; }
body.sehaj-reader main { padding-bottom: 2rem; }

.sehaj-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.2rem 1.1rem 3rem;
}
.sehaj-hero { margin-bottom: 1.1rem; }
.sehaj-look-banner {
  margin: 0 0 1rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  background: rgba(var(--ink-rgb), 0.4);
  text-align: center;
}
.sehaj-look-banner a { color: var(--gold-50); }

.sehaj-page .reader-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.7rem;
  align-items: center;
  justify-content: center;
}
.sehaj-page .go-id input { width: 5.5rem; text-align: center; }
.btn.is-off {
  opacity: 0.4;
  pointer-events: none;
}

.sehaj-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}
.sehaj-meter {
  flex: 1 1 10rem;
  height: 0.45rem;
  min-width: 8rem;
  background: rgba(var(--ink-rgb), 0.55);
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  overflow: hidden;
}
.sehaj-meter-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-600), var(--gold-400));
}

.quick-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
  margin: 0 0 1rem;
}
.chip {
  appearance: none;
  text-decoration: none;
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  background: rgba(var(--ink-rgb), 0.35);
  color: var(--gold-200);
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
}
.chip:hover { border-color: var(--gold-400); color: var(--gold-50); }
.chip.active {
  background: linear-gradient(180deg, #f0d78c, var(--gold-400));
  color: #1a1408;
  border-color: #f6e6c3;
}

.ang-badge {
  text-align: center;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b4e10;
  margin: 0 auto 0.95rem;
  background: rgba(var(--accent-rgb), 0.16);
  border: 1px solid rgba(138, 106, 18, 0.35);
  border-radius: 999px;
  padding: 0.32rem 0.9rem;
  display: table;
}

.sehaj-page .kind-sehaj_sheet {
  grid-column: 1 / -1 !important;
  display: flex;
  justify-content: center;
}
.sehaj-sheet {
  position: relative;
  z-index: 21;
  isolation: isolate;
  width: min(48rem, 100%);
  margin-left: auto;
  margin-right: auto;
}
.sehaj-sheet .sheet-inner {
  padding: 2.55rem 3.35rem 2.35rem;
}
.sehaj-body {
  font-family: "Noto Sans Gurmukhi", "Nirmala UI", sans-serif;
  font-size: var(--gurbani-size, 28px);
  line-height: 1.9;
  color: #1a120b;
  text-align: center;
  text-wrap: pretty;
  word-break: break-word;
}
.sehaj-body p {
  margin: 0.2rem 0;
  font-family: inherit;
  font-size: inherit;
}

.sheet-brand {
  text-align: center;
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8a6a12;
  margin-top: 0.85rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(138, 106, 18, 0.25);
}

.bottom-nav {
  margin-top: 1rem;
  justify-content: center;
}

.sehaj-page,
.sangat-page {
  position: relative;
}
.path-arrows {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: 0;
  padding: 0;
  pointer-events: none;
  z-index: 6;
}
.sehaj-sheet .path-arrows {
  position: absolute;
  left: 0.45rem;
  right: 0.45rem;
}
.sehaj-sheet .path-arrows-top { top: 0.45rem; }
.sehaj-sheet .path-arrows-bottom { bottom: 0.45rem; }
.sehaj-page .kind-sehaj_arrows:not(:has(.path-arrows)) {
  display: none;
}
.kind-sangat_arrows {
  position: absolute;
  left: 0.45rem;
  right: 0.45rem;
  height: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: visible;
  z-index: 6;
  pointer-events: none;
}
.kind-sangat_arrows:has(.path-arrows-top) { top: 0.45rem; }
.kind-sangat_arrows:has(.path-arrows-bottom) { bottom: 0.45rem; top: auto; }
.path-arrow {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  height: 2.85rem;
  font-size: 1.45rem;
  line-height: 1;
  text-decoration: none;
  color: rgba(240, 215, 140, 0.95);
  background: rgba(26, 18, 11, 0.28);
  border: 1px solid rgba(240, 215, 140, 0.42);
  border-radius: 999px;
  opacity: 0.48;
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.path-arrow:hover,
.path-arrow:focus-visible {
  opacity: 0.92;
  background: rgba(26, 18, 11, 0.55);
  color: #fff6d4;
  border-color: rgba(246, 230, 195, 0.85);
}
.path-arrow.is-off {
  opacity: 0.18;
  pointer-events: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(8, 6, 3, 0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal.hidden { display: none; }
.modal-card {
  width: min(400px, 100%);
  background: #fff8ef;
  color: #2a1c10;
  border-radius: 18px;
  padding: 1.25rem 1.2rem 1.1rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  border: 1px solid #e8d5b5;
}
.modal-card h2 {
  margin: 0 0 0.25rem;
  color: #8a6a12;
  text-align: center;
  font-family: var(--display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.95rem;
}
.modal-hint {
  margin: 0 0 0.85rem;
  text-align: center;
  color: #6b5340;
  font-size: 0.88rem;
}
.goto-modal-form input {
  width: 100%;
  font-size: 1.5rem;
  text-align: center;
  padding: 0.65rem;
  border-radius: 12px;
  border: 1px solid #e0c9a4;
  background: #fffaf3;
  color: #1a120b;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.modal-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 0.85rem;
}
.modal-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
}
.modal-presets .chip {
  background: #fffaf3;
  color: #5b4632;
  border-color: #e0c9a4;
}
.modal-presets .chip.active,
.modal-presets .chip:hover {
  background: linear-gradient(180deg, #f0d78c, var(--gold-400));
  color: #1a1408;
  border-color: transparent;
}

.sehaj-hall .sehaj-start-grid { margin-bottom: 1.2rem; }
.sehaj-start-card { min-height: 0; }
.sehaj-start-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
  align-items: center;
}
.sehaj-start-form input[type="text"] {
  flex: 1 1 10rem;
  min-width: 8rem;
  background: rgba(var(--ink-rgb), 0.45);
  border: 1px solid rgba(var(--accent-rgb), 0.4);
  color: var(--gold-50);
  font: inherit;
  padding: 0.55rem 0.7rem;
}
.sehaj-start-form input[type="number"] {
  width: 5.5rem;
  background: rgba(var(--ink-rgb), 0.45);
  border: 1px solid rgba(var(--accent-rgb), 0.4);
  color: var(--gold-50);
  font: inherit;
  padding: 0.55rem 0.5rem;
  text-align: center;
}
.sehaj-session-head { margin: 1.6rem 0 0.9rem; }
.sehaj-session-head h2 {
  font-family: var(--display);
  letter-spacing: 0.12em;
  font-size: 1.2rem;
  margin: 0;
  color: var(--gold-50);
}
.sehaj-session-list { display: flex; flex-direction: column; gap: 0.65rem; }
.sehaj-session-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  justify-content: space-between;
}
.sehaj-session-row h3 {
  margin: 0 0 0.2rem;
  color: var(--gold-50);
  font-size: 1.1rem;
}
.sehaj-session-row p { margin: 0; color: var(--gold-200); font-size: 0.92rem; }
.sehaj-session-actions {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

@media (max-width: 640px) {
  .sehaj-page .reader-toolbar { justify-content: stretch; }
  .sehaj-page .go-id { flex: 1 1 100%; justify-content: center; }
  .sehaj-sheet .sheet-inner { padding: 2.3rem 2.55rem 2.15rem; }
  .path-arrow { width: 2.45rem; height: 2.45rem; font-size: 1.25rem; }
}

.pothi-panel { text-align: center; padding: 1.4rem 1.1rem; }
.pothi-panel p { margin: 0.4rem 0; }
.sangat-slot-form label { display: block; margin: 0.35rem 0; }
.sangat-slot-line { font-size: 0.85rem; color: var(--gold-200); }

body.sehaj-immerse .site-header,
body.sehaj-immerse .sehaj-hero,
body.sehaj-immerse .reader-toolbar,
body.sehaj-immerse .sehaj-controls,
body.sehaj-immerse .quick-jump,
body.sehaj-immerse .sehaj-meter,
body.sehaj-immerse .sheet-brand,
body.sehaj-immerse .ang-badge,
body.sehaj-immerse .ornament,
body.sehaj-immerse .gold-dust,
body.sehaj-immerse .nav-toggle,
body.sehaj-immerse .kind-sehaj_hero,
body.sehaj-immerse .kind-sehaj_toolbar,
body.sehaj-immerse .kind-sehaj_controls,
body.sehaj-immerse .kind-sehaj_jump {
  display: none !important;
}
body.sehaj-immerse .kind-sehaj_arrows { display: none; }
body.sehaj-immerse main { padding: 0; }
body.sehaj-immerse .sehaj-page {
  max-width: none;
  padding: 0;
  margin: 0;
}
body.sehaj-immerse .sehaj-page .kind-sehaj_sheet {
  max-width: none;
  width: 100%;
}
body.sehaj-immerse .sehaj-sheet {
  min-height: 100dvh;
  width: 100%;
  max-width: none;
  margin: 0;
  border-radius: 0;
}
body.sehaj-immerse .sehaj-body {
  font-size: calc(var(--gurbani-size, 28px) * 1.08);
}
body.sehaj-immerse .sheet-inner {
  padding: 3.2rem 3.6rem 3.4rem;
}
.immerse-exit {
  display: none;
}
body.sehaj-immerse .immerse-exit {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0.55rem;
  left: 50%;
  transform: translateX(-50%);
  width: 2.4rem;
  height: 2.4rem;
  z-index: 7;
  text-decoration: none;
  color: #6b4e10;
  background: color-mix(in srgb, var(--sheet-bg, #fffaf3) 82%, transparent);
  border: 1px solid rgba(138, 106, 18, 0.35);
  font-size: 1.25rem;
  line-height: 1;
  opacity: 0.55;
  border-radius: 999px;
}
body.sehaj-immerse .immerse-exit:hover,
body.sehaj-immerse .immerse-exit:focus-visible {
  opacity: 0.95;
}
