/* /sadhna - bhajans, paath and jaap. Bhajan rows and the player dock are the
   shared ones (custom.css / bhajan-player.css); this file only lays them out. */
.sd {
    --sd-ink: #3a2216;
    --sd-muted: #85654f;
    --sd-saffron: #a44d17;
    --sd-line: #eddcc7;
    padding-top: 10px;
}

.sd-section {
    margin-top: 22px;
}

.sd-section:first-child {
    margin-top: 4px;
}

.sd-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 11px;
}

.sd-head h2 {
    margin: 0;
    color: var(--sd-ink);
    font-size: 18px;
    line-height: 1.35;
}

.sd-head p {
    margin: 3px 0 0;
    color: var(--sd-muted);
    font-size: 12px;
}

.sd-play-all {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid #d9b690;
    border-radius: 999px;
    background: #fff;
    color: var(--sd-saffron);
    font-size: 12.5px;
    font-weight: 800;
    cursor: pointer;
}

.sd-play-all .fa {
    font-size: 11px;
}

/* Quick picks: 4 rows per column, columns swipe sideways. DOM order runs
   down each column, so "next" in the player follows what the eye sees. */
.sd-picks {
    display: grid;
    grid-auto-columns: 88%;
    grid-auto-flow: column;
    grid-template-rows: repeat(4, auto);
    column-gap: 10px;
    margin-inline: calc(var(--sb-page-gutter, 16px) * -1);
    padding: 0 var(--sb-page-gutter, 16px) 4px;
    overflow-x: auto;
    scroll-padding-inline: var(--sb-page-gutter, 16px);
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.sd-picks::-webkit-scrollbar {
    display: none;
}

.sd .sd-picks .sb-bhajan-row {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    min-width: 0;
    padding: 8px 4px;
    border: 0;
    border-bottom: 1px solid #f3e6d6;
    border-radius: 0;
    background: transparent;
    text-align: left;
    scroll-snap-align: start;
}

.sd .sd-picks .sb-bhajan-row:nth-child(4n) {
    border-bottom: 0;
}

.sd .sd-picks .sb-bhajan-row.is-playing {
    border-radius: 12px;
    background: #fff2d9;
}

.sd .sd-picks .sb-bhajan-row-thumb {
    display: block;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    overflow: hidden;
    border-radius: 10px;
    background: #f5e6d3;
}

.sd .sd-picks .sb-bhajan-row-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sd .sd-picks .sb-bhajan-row-body {
    display: block;
    flex: 1;
    min-width: 0;
}

.sd .sd-picks .sb-bhajan-row-title {
    display: block;
    overflow: hidden;
    color: var(--sd-ink);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.sd .sd-picks .sb-bhajan-row-sub {
    display: block;
    overflow: hidden;
    color: var(--sd-muted);
    font-size: 11.5px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.sd-more,
.sd .sd-more:hover,
.sd .sd-more:focus-visible {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 10px auto 0;
    color: var(--sd-saffron);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.sd-more span {
    font-size: 17px;
    line-height: 1;
}

/* Paath types - same four as the home page strip, a little roomier. */
.sd-paath {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.sd-paath a,
.sd .sd-paath a:hover,
.sd .sd-paath a:focus-visible {
    display: flex;
    min-height: 82px;
    padding: 10px 3px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid #ead3b5;
    border-radius: 16px;
    background: #fffdf9;
    box-shadow: 0 3px 9px rgba(83, 45, 23, 0.06);
    color: #754024;
    text-align: center;
    text-decoration: none;
}

.sd-paath a > span {
    font-size: 24px;
    line-height: 1.3;
}

.sd-paath strong {
    font-size: 13.5px;
    line-height: 1.25;
}

/* ==========================================================================
   साधना | पाठ tabs, the tools grid, and the tool screens
   ========================================================================== */
.sd-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin: 24px 0 12px;
    padding: 4px;
    border: 1px solid var(--sd-line);
    border-radius: 999px;
    background: #fbf3ea;
}

.sd-tab {
    padding: 9px 6px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #8a6450;
    font: inherit;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
}

.sd-tab.is-active {
    background: #fff;
    box-shadow: 0 3px 10px rgba(110, 60, 25, 0.12);
    color: #8a2f18;
}

.sd-panel[hidden] {
    display: none;
}

.sd-panel-intro {
    margin: 0 2px 12px;
    color: var(--sd-muted);
    font-size: 13px;
}

/* Tools grid */
.sd-tools {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.sd-tool {
    position: relative;
    display: flex;
    min-height: 138px;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding: 13px;
    border: 1px solid var(--sd-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(80, 45, 20, 0.05);
    color: var(--sd-ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.sd-tool:active {
    transform: scale(0.98);
}

.sd-tool-icon {
    display: grid;
    width: 44px;
    height: 44px;
    margin-bottom: 8px;
    place-items: center;
    border-radius: 15px;
    background: var(--sd-tool-tint, #fff0dd);
    font-size: 23px;
}

.sd-tool b {
    font-size: 15px;
    line-height: 1.3;
}

.sd-tool small {
    color: var(--sd-muted);
    font-size: 12px;
    line-height: 1.4;
}

.sd-tool-status {
    margin-top: auto;
    padding-top: 6px;
    color: #3f8a55;
    font-size: 11.5px;
    font-style: normal;
    font-weight: 700;
}

.sd-tool-status[hidden],
.sd-tool-mantra[hidden] {
    display: none;
}

.sd-tool--jaap { --sd-tool-tint: #fff0dd; }
.sd-tool--ram { --sd-tool-tint: #fdecef; }
.sd-tool--breath { --sd-tool-tint: #e9f3fb; }
.sd-tool--maun { --sd-tool-tint: #efeaf8; }
.sd-tool--sankalp { --sd-tool-tint: #fff2e8; }
.sd-tool--jyot { --sd-tool-tint: #fff6d6; }

/* पाठ tab */
.sd-subhead {
    margin: 20px 2px 8px;
    color: var(--sd-ink);
    font-size: 15px;
}

.sd-paath-list {
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--sd-line);
    border-radius: 16px;
    background: #fff;
    list-style: none;
}

.sd-paath-list li + li {
    border-top: 1px solid #f3e7d9;
}

.sd .sd-paath-list a,
.sd .sd-paath-list a:hover,
.sd .sd-paath-list a:visited,
.sd-search .sd-paath-list a,
.sd-search .sd-paath-list a:hover,
.sd-search .sd-paath-list a:visited {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    color: var(--sd-ink);
    text-decoration: none;
}

.sd-paath-list span {
    flex: 1;
    font-size: 15px;
    font-weight: 700;
}

.sd-paath-list small {
    color: var(--sd-muted);
    font-size: 12px;
}

.sd-paath-list .fa {
    color: #c7a282;
    font-size: 12px;
}

/* Tool screens: same shell as the jaap screen */
.sd-tool-screen {
    position: fixed;
    inset: 0;
    z-index: 1450;
    background: rgba(33, 20, 12, 0.5);
}

.sd-tool-screen[hidden] {
    display: none;
}

.sd-tool-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: var(--sb-app-width);
    height: 100%;
    margin: 0 auto;
    padding: 12px 16px calc(18px + env(safe-area-inset-bottom));
    overflow-y: auto;
    background:
        radial-gradient(circle at 50% 38%, rgba(255, 214, 150, 0.35), transparent 45%),
        linear-gradient(180deg, #fffaf3, #fbeedd);
    color: #3a2216;
}

.sd-tool-screen--dark .sd-tool-panel {
    background: radial-gradient(circle at 50% 42%, #2c1d14, #0f0b11 72%);
    color: #f6e6d2;
}

.sd-tool-screen--dark .sd-jaap-icon {
    border-color: rgba(255, 220, 170, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: #f6e6d2;
}

.sd-tool-screen--dark .sd-jaap-top b {
    color: #f6e6d2;
}

.sd-jaap-icon--ghost {
    visibility: hidden;
}

.sd-tool-help {
    margin: 12px 0 6px;
    color: #85654f;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

.sd-tool-note {
    margin: 10px 0 0;
    color: #9a7d68;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

.sd-tool-screen--dark .sd-tool-note,
.sd-tool-screen--dark .sd-jaap-today {
    color: rgba(246, 230, 210, 0.62);
}

.sd-chips {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.sd-chips--wrap {
    flex-wrap: wrap;
}

.sd-chip {
    padding: 8px 13px;
    border: 1px solid #ead8c4;
    border-radius: 999px;
    background: #fff;
    color: #5c3a24;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.sd-chip[aria-checked="true"] {
    border-color: #3a2216;
    background: #3a2216;
    color: #fff;
}

.sd-tool-screen--dark .sd-chip {
    border-color: rgba(255, 220, 170, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #f6e6d2;
}

.sd-tool-screen--dark .sd-chip[aria-checked="true"] {
    border-color: #e0a45e;
    background: #e0a45e;
    color: #1d130c;
}

.sd-tool-start {
    width: min(100%, 320px);
    margin-top: 16px;
    padding: 13px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #a44d17, #d8742a);
    box-shadow: 0 8px 20px rgba(164, 77, 23, 0.25);
    color: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
}

.sd-tool-start.is-running {
    background: #fff;
    box-shadow: none;
    color: #8a2f18;
    outline: 1px solid #e3c29e;
}

.sd-tool-screen--dark .sd-tool-start.is-running {
    background: rgba(255, 255, 255, 0.08);
    color: #f6e6d2;
    outline-color: rgba(255, 220, 170, 0.25);
}

/* ✍️ राम नाम लेखन */
.sd-ram-board {
    position: relative;
    width: min(100%, 340px);
    aspect-ratio: 1.25;
    margin-top: 6px;
    overflow: hidden;
    border: 1px solid #ead3b5;
    border-radius: 22px;
    background:
        repeating-linear-gradient(0deg, transparent 0 31px, rgba(200, 150, 100, 0.12) 31px 32px),
        #fffdf8;
    box-shadow: 0 12px 30px rgba(110, 48, 15, 0.12);
}

.sd-ram-board canvas {
    display: block;
    width: 100%;
    height: 100%;
    touch-action: none;
    cursor: crosshair;
}

.sd-ram-count {
    position: absolute;
    top: 10px;
    right: 12px;
    color: #8a2f18;
    pointer-events: none;
}

.sd-ram-count b {
    font-size: 22px;
}

.sd-ram-count small {
    color: #a08878;
    font-size: 12px;
}

.sd-ram-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px 8px;
    width: min(100%, 340px);
    min-height: 26px;
    max-height: 78px;
    margin-top: 10px;
    overflow: hidden;
    color: #b0522a;
    font-size: 15px;
    font-weight: 700;
}

.sd-ram-strip span {
    animation: sdRamIn 0.45s ease;
}

@keyframes sdRamIn {
    from { opacity: 0; transform: translateY(-10px) scale(1.4); }
    to { opacity: 1; transform: none; }
}

/* 🌬️ प्राणायाम */
.sd-breath {
    position: relative;
    display: grid;
    width: min(250px, 70vw);
    aspect-ratio: 1;
    margin-top: 14px;
    place-items: center;
}

.sd-breath-circle {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(126, 178, 214, 0.55), rgba(126, 178, 214, 0.15) 70%);
    box-shadow: 0 0 0 2px rgba(126, 178, 214, 0.35);
    transform: scale(0.55);
    transition-property: transform, background;
    transition-timing-function: ease-in-out;
}

.sd-breath-text {
    position: relative;
    text-align: center;
}

.sd-breath-text b {
    display: block;
    color: #2d4f68;
    font-size: 22px;
    line-height: 1.3;
}

.sd-breath-text small {
    display: block;
    margin-top: 4px;
    color: #5f7b90;
    font-size: 13px;
}

.sd-breath-round {
    min-height: 20px;
    margin: 12px 0 0;
    color: #85654f;
    font-size: 13px;
}

/* 🧘 मौन ध्यान */
.sd-maun-ring {
    position: relative;
    display: grid;
    width: min(250px, 70vw);
    aspect-ratio: 1;
    margin-top: 26px;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 60px rgba(224, 164, 94, 0.14);
}

.sd-maun-fill {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(#e0a45e var(--sd-maun, 0%), rgba(255, 220, 170, 0.1) 0);
    -webkit-mask: radial-gradient(circle, transparent 66%, #000 67%);
    mask: radial-gradient(circle, transparent 66%, #000 67%);
}

.sd-maun-ring.is-running {
    animation: sdBreathe 8s ease-in-out infinite;
}

@keyframes sdBreathe {
    0%, 100% { transform: scale(0.96); }
    50% { transform: scale(1.03); }
}

.sd-maun-inner {
    position: relative;
    max-width: 70%;
    text-align: center;
}

.sd-maun-inner b {
    display: block;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.1;
}

.sd-maun-inner small {
    display: block;
    margin-top: 6px;
    color: rgba(246, 230, 210, 0.65);
    font-size: 13px;
    line-height: 1.4;
}

/* 🔥 संकल्प */
.sd-tool-panel--scroll {
    align-items: stretch;
}

.sd-sankalp-list {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.sd-sankalp {
    padding: 14px;
    border: 1px solid #efd9bf;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 6px 16px rgba(110, 48, 15, 0.06);
}

.sd-sankalp-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.sd-sankalp-head b {
    display: block;
    font-size: 16px;
    line-height: 1.35;
}

.sd-sankalp-head small {
    display: block;
    margin-top: 2px;
    color: #8a6d57;
    font-size: 12px;
}

.sd-sankalp-end {
    flex: 0 0 auto;
    padding: 4px 8px;
    border: 0;
    background: none;
    color: #a08878;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.sd-sankalp-days {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(26px, 1fr));
    gap: 5px;
    margin-top: 12px;
}

.sd-sankalp-day {
    display: grid;
    aspect-ratio: 1;
    place-items: center;
    border-radius: 8px;
    background: #f5eadc;
    color: #a08070;
    font-size: 10.5px;
}

.sd-sankalp-day.is-done {
    background: #a44d17;
    color: #fff;
}

.sd-sankalp-day.is-today {
    box-shadow: inset 0 0 0 2px #d8742a;
    color: #8a3a12;
    font-weight: 800;
}

.sd-sankalp-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.sd-sankalp-actions button {
    flex: 1;
    padding: 10px;
    border: 1px solid #e3c29e;
    border-radius: 12px;
    background: #fff8ef;
    color: #8a3a12;
    font: inherit;
    font-size: 13.5px;
    font-weight: 800;
    cursor: pointer;
}

.sd-sankalp-actions .is-primary {
    border-color: transparent;
    background: #a44d17;
    color: #fff;
}

.sd-sankalp-actions .is-done {
    border-color: #bfe0c8;
    background: #eaf6ed;
    color: #2f6b40;
    cursor: default;
}

.sd-sankalp-new {
    margin-top: 16px;
    padding: 14px;
    border: 1px dashed #e0b98e;
    border-radius: 18px;
    background: rgba(255, 248, 239, 0.8);
    text-align: center;
}

.sd-sankalp-new h3 {
    margin: 0;
    font-size: 16px;
}

.sd-sankalp-new .sd-tool-help {
    margin: 12px 0 0;
}

.sd-sankalp-own {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid #e3c9ad;
    border-radius: 12px;
    background: #fff;
    color: #3a2216;
    font: inherit;
    font-size: 16px;
}

.sd-sankalp-own[hidden],
.sd-sankalp-error[hidden] {
    display: none;
}

.sd-sankalp-error {
    margin: 10px 0 0;
    color: #b3261e;
    font-size: 13px;
}

/* 🪔 अखंड ज्योत */
.sd-jyot {
    position: relative;
    width: 220px;
    height: 240px;
    margin-top: 20px;
}

.sd-jyot-glow {
    position: absolute;
    left: 50%;
    top: 40px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 170, 60, 0.45), rgba(255, 140, 40, 0.12) 45%, transparent 70%);
    opacity: 0;
    transform: translateX(-50%);
    transition: opacity 1.2s ease;
}

.sd-jyot-flame {
    position: absolute;
    left: 50%;
    top: 58px;
    width: 34px;
    height: 70px;
    opacity: 0;
    transform: translateX(-50%) scale(0.4);
    transform-origin: 50% 100%;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.sd-jyot-flame::before,
.sd-jyot-flame i {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    border-radius: 50% 50% 45% 45% / 62% 62% 38% 38%;
    transform: translateX(-50%);
}

.sd-jyot-flame::before {
    width: 34px;
    height: 70px;
    background: radial-gradient(ellipse at 50% 80%, #fff6c9 0%, #ffd66b 30%, #ff9a2e 62%, rgba(255, 90, 20, 0) 100%);
    animation: sdFlicker 1.6s ease-in-out infinite alternate;
}

.sd-jyot-flame i {
    bottom: 4px;
    width: 12px;
    height: 26px;
    background: radial-gradient(ellipse at 50% 70%, #ffffff, #fff1b0 60%, rgba(255, 240, 180, 0));
}

@keyframes sdFlicker {
    0% { transform: translateX(-50%) scale(1, 1) rotate(-1deg); }
    40% { transform: translateX(-52%) scale(0.96, 1.05) rotate(1.5deg); }
    100% { transform: translateX(-48%) scale(1.03, 0.97) rotate(-1.5deg); }
}

.sd-jyot-diya {
    position: absolute;
    left: 50%;
    top: 124px;
    width: 150px;
    height: 58px;
    border-radius: 12px 12px 75px 75px / 10px 10px 58px 58px;
    background: linear-gradient(180deg, #d9823b 0%, #a4521f 55%, #6e3212 100%);
    box-shadow: inset 0 6px 0 rgba(255, 200, 140, 0.35), 0 12px 24px rgba(0, 0, 0, 0.45);
    transform: translateX(-50%);
}

.sd-jyot-diya::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -7px;
    width: 128px;
    height: 16px;
    border-radius: 50%;
    background: radial-gradient(ellipse, #f6c35a 0%, #c8791f 70%);
    transform: translateX(-50%);
}

.sd-jyot.is-lit .sd-jyot-glow {
    opacity: 1;
}

.sd-jyot.is-lit .sd-jyot-flame {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.sd-jyot.is-low .sd-jyot-flame {
    transform: translateX(-50%) scale(0.72);
}

.sd-jyot-status {
    min-height: 44px;
    margin: 14px 0 0;
    color: #f6e6d2;
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
}

.sd-jyot-status small {
    display: block;
    color: rgba(246, 230, 210, 0.65);
    font-size: 13px;
}

@media (prefers-reduced-motion: reduce) {
    .sd-jyot-flame::before,
    .sd-maun-ring.is-running,
    .sd-ram-strip span {
        animation: none;
    }
}

.sd-sankalp-day.is-done.is-today {
    color: #fff;
    box-shadow: inset 0 0 0 2px #7a2f0f;
}

/* ---------------------------------------------------------------
   पूजा-पाठ (this page as the library tab): first card shelves,
   centred section dividers, 3-per-row bhajans and tools.
   --------------------------------------------------------------- */
/* Paath shelves inside the maroon first card (cream-glass, like its share button) */
.sd-intro-shelves { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.sd .sd-intro-shelves a,
.sd .sd-intro-shelves a:link,
.sd .sd-intro-shelves a:visited { display: flex; min-width: 0; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border: 1px solid rgba(255, 207, 154, .4); border-radius: 16px; background: rgba(255, 240, 222, .1); color: #fff4e6; text-align: center; text-decoration: none; }
.sd-intro-shelves span { font-size: 22px; line-height: 1; }
.sd-intro-shelves b { font-size: 12.5px; font-weight: 800; line-height: 1.25; }
.sd .sd-intro-shelves a:active { transform: scale(.97); }

/* Section divider: a thin gold line with the heading in the centre */
.sd-divider { display: flex; align-items: center; gap: 12px; margin: 26px 0 14px; color: #4a2410; font-size: 16px; font-weight: 800; line-height: 1.3; }
.sd-divider::before,
.sd-divider::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, #d9a86c); }
.sd-divider::after { background: linear-gradient(90deg, #d9a86c, transparent); }
.sd-divider span { flex: 0 0 auto; }

/* भजन: the "सभी भजन देखें" button under the swipe list */
.sd .sd-all-bhajans,
.sd .sd-all-bhajans:link,
.sd .sd-all-bhajans:visited { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; padding: 12px 14px; border: 1px solid #9b3f24; border-radius: 14px; background: linear-gradient(135deg, #b8563b 0%, #9a3b20 100%); box-shadow: 0 5px 14px rgba(138, 47, 24, .2); color: #fff7ef; font-size: 15px; font-weight: 800; text-decoration: none; }

/* साधना tools: one row that slides sideways - 2½ cards show so the next peeks, › on the right */
.sd-slider { position: relative; margin: 0 -14px; }
.sd-tools--slider { display: flex; gap: 10px; overflow-x: auto; padding: 2px 14px 6px; scroll-snap-type: x mandatory; scroll-padding-left: 14px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.sd-tools--slider::-webkit-scrollbar { display: none; }
.sd-tools--slider .sd-tool { flex: 0 0 calc((100% - 6px) / 2.5); min-height: 0; align-items: center; gap: 2px; padding: 14px 6px; border-radius: 18px; scroll-snap-align: start; text-align: center; }
.sd-tools--slider .sd-tool-icon { width: 44px; height: 44px; margin-bottom: 6px; border-radius: 15px; font-size: 22px; }
.sd-tools--slider .sd-tool b { font-size: 14px; }
.sd-tools--slider .sd-tool small { font-size: 11.5px; }
.sd-tools--slider .sd-tool-status { padding-top: 4px; font-size: 10.5px; }
.sd-tools--slider .sd-tool-mantra { display: none !important; }
.sd-slider-next { position: absolute; top: 50%; right: 10px; z-index: 2; display: grid; width: 36px; height: 36px; place-items: center; padding: 0; border: 1px solid #e3c29e; border-radius: 50%; background: #fff; box-shadow: 0 4px 12px rgba(80, 45, 20, .18); color: #8a3a12; font-size: 13px; transform: translateY(-50%); cursor: pointer; }
.sd-slider-next[hidden] { display: none; }
.sd-slider-next:active { transform: translateY(-50%) scale(.94); }

/* पाठ खोजें: the bar in the first card, and the sheet with its own search bar */
.sd-search-open { position: relative; display: flex; width: 100%; align-items: center; gap: 10px; margin-top: 16px; padding: 13px 16px; border: 0; border-radius: 16px; background: #fff; box-shadow: 0 8px 20px rgba(40, 15, 5, .22); color: #8a7263; font: inherit; font-size: 14.5px; font-weight: 600; text-align: left; cursor: text; }
.sd-search-open .fa { color: #b0521c; font-size: 16px; }
.sd-search-open span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd-search-open:active { transform: scale(.99); }

.sd-search { position: fixed; inset: 0; z-index: 1700; display: flex; align-items: flex-end; justify-content: center; }
.sd-search[hidden] { display: none; }
.sd-search-backdrop { position: absolute; inset: 0; background: rgba(20, 10, 6, .55); }
.sd-search-card { position: relative; display: flex; width: 100%; max-width: var(--sb-app-width, 440px); height: 88dvh; flex-direction: column; padding: 8px 14px max(14px, env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; background: #fffaf3; animation: sdSearchUp .22s ease-out; }
@keyframes sdSearchUp { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.sd-search-handle { display: block; width: 44px; height: 5px; margin: 0 auto 12px; border-radius: 999px; background: #e6d3bf; }
.sd-search-bar { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; padding: 4px 6px 4px 14px; border: 1.5px solid #e3c29e; border-radius: 16px; background: #fff; }
.sd-search-bar:focus-within { border-color: #b8563b; box-shadow: 0 0 0 3px rgba(184, 86, 59, .12); }
.sd-search-bar .fa-search { color: #b0521c; }
.sd-search-bar input { flex: 1; min-width: 0; padding: 10px 0; border: 0; background: none; color: #2f1a10; font: inherit; font-size: 16px; outline: none; }
.sd-search-bar input::-webkit-search-cancel-button { display: none; }
.sd-search-x { display: grid; flex: 0 0 36px; width: 36px; height: 36px; place-items: center; border: 0; border-radius: 50%; background: #f3e7da; color: #6a3418; }
.sd-search-body { flex: 1; overflow-y: auto; margin: 0 -2px; padding: 12px 2px 4px; overscroll-behavior: contain; }
.sd-search-label { margin: 2px 4px 8px; color: #8a4a22; font-size: 13px; font-weight: 800; }
.sd-search-empty { margin: 28px 0 0; color: #6a3418; font-size: 15px; font-weight: 700; line-height: 1.6; text-align: center; }
.sd-search-empty small { color: #8a7263; font-size: 12.5px; font-weight: 600; }
.sd-search [hidden] { display: none !important; }
html.sd-lock, html.sd-lock body { overflow: hidden; }

/* The search bar types out examples (askbar-typing.js), with a caret and a "खोजें" pill - like the कृष्ण पथ bar */
.sd-search-open { padding: 5px 5px 5px 16px; min-height: 50px; }
.sd-search-open-text { flex: 1; min-width: 0; overflow: hidden; color: #7b5e4b; font-size: 14.5px; text-overflow: ellipsis; white-space: nowrap; }
.sd-search-open-text::after { content: ""; display: inline-block; width: 1.5px; height: 1.05em; margin-left: 2px; background: #b0835f; vertical-align: -.15em; animation: sdCaret 1s steps(1) infinite; }
@keyframes sdCaret { 50% { opacity: 0; } }
.sd-search-open-go { flex: 0 0 auto; padding: 10px 16px; border-radius: 12px; background: #a44d17; color: #fff; font-size: 13.5px; font-weight: 800; }
@media (prefers-reduced-motion: reduce) { .sd-search-open-text::after { animation: none; } }

/* Search list rows: name with its type below; how many read it on the right */
.sd-search-list .sd-search-name { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 2px; }
.sd-search-list .sd-search-name b { overflow: hidden; color: #2f1a10; font-size: 15px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.sd-search-list .sd-search-name small { color: #a0582b; font-size: 12px; font-weight: 700; }
.sd-search-list .sd-search-reads { flex: 0 0 auto; margin-left: 8px; color: #8a4a22; font-size: 12px; font-style: normal; font-weight: 700; white-space: nowrap; }
.sd-search-list .sd-search-reads small { color: #9a8878; font-size: 10.5px; font-weight: 700; }

/* नाम लेखन: the name chips (one scrolling row) and the two buttons under the board */
.sd-name-chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 4px -2px 10px; padding: 2px; scrollbar-width: none; }
.sd-name-chips::-webkit-scrollbar { display: none; }
.sd-name-chips .sd-chip { flex: 0 0 auto; min-width: 54px; font-size: 16px; font-weight: 800; }
.sd-ram-actions { display: grid; width: 100%; grid-template-columns: 1fr 2fr; gap: 10px; margin: 12px 0 4px; }
.sd-ram-clear,
.sd-ram-write { min-height: 50px; border-radius: 14px; font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; }
.sd-ram-clear { border: 1px solid #e3c29e; background: #fff; color: #8a3a12; }
.sd-ram-write { border: 1px solid #9b3f24; background: linear-gradient(135deg, #b8563b 0%, #9a3b20 100%); box-shadow: 0 5px 14px rgba(138, 47, 24, .22); color: #fff7ef; }
.sd-ram-write:disabled { opacity: .45; box-shadow: none; cursor: default; }
.sd-ram-clear:active,
.sd-ram-write:not(:disabled):active { transform: scale(.98); }

/* 📖 मेरे पाठ: the card, and its rows in the sheet (the row link + a small × to take it off) */
.sd-tool--mine { --sd-tool-tint: #fdf1e3; }
.sd-search-list li.sd-mine-row { display: flex; align-items: stretch; }
.sd-search-list li.sd-mine-row > a { flex: 1; min-width: 0; }
.sd-mine-x { flex: 0 0 40px; padding: 0; border: 0; border-left: 1px solid #f0e2d3; background: none; color: #b09a8a; font-size: 20px; line-height: 1; cursor: pointer; }
.sd-mine-x:active { background: #fdf1e3; color: #8a3a12; }
.sd-mine-empty { margin: 12px 0 18px; }

/* 🧘 ध्यान chooser: a short sheet with two big options */
.sd-search-card--auto { height: auto; }
.sd-dhyan-title { margin: 0 4px 12px; color: #2f1a10; font-size: 18px; font-weight: 800; }
.sd-dhyan-options { display: grid; gap: 10px; margin-bottom: 8px; }
.sd-dhyan-option { display: grid; grid-template-columns: 52px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 14px; border: 1px solid #efdcc7; border-radius: 18px; background: #fff; color: #2f1a10; font: inherit; text-align: left; cursor: pointer; }
.sd-dhyan-option span { grid-row: 1 / 3; display: grid; width: 52px; height: 52px; place-items: center; border-radius: 16px; background: #efeaf8; font-size: 26px; }
.sd-dhyan-option:last-child span { background: #e9f3fb; }
.sd-dhyan-option b { font-size: 16px; font-weight: 800; }
.sd-dhyan-option small { color: #8a7263; font-size: 12.5px; }
.sd-dhyan-option:active { transform: scale(.98); }

/* The three practice tools in one row (no slider) */
.sd-tools--row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sd-tools--row .sd-tool { min-height: 0; align-items: center; gap: 2px; padding: 12px 4px; border-radius: 18px; text-align: center; }
.sd-tools--row .sd-tool-icon { width: 40px; height: 40px; margin-bottom: 6px; border-radius: 14px; font-size: 20px; }
.sd-tools--row .sd-tool b { font-size: 13.5px; }
.sd-tools--row .sd-tool small { font-size: 11px; }
.sd-tools--row .sd-tool-status { padding-top: 4px; font-size: 10.5px; }
.sd-tools--row .sd-tool-mantra { display: none !important; }

/* 📖 मेरे पाठ: full-width card under the tools - their most-read paaths, one tap each */
.sd-mine-card { margin-top: 10px; border: 1px solid var(--sd-line, #efdcc7); border-radius: 18px; background: #fff; box-shadow: 0 6px 18px rgba(80, 45, 20, .05); }
.sd-mine-card-head { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px 4px; border: 0; background: none; font: inherit; cursor: pointer; }
.sd-mine-card-title { color: #2f1a10; font-size: 15px; font-weight: 800; }
.sd-mine-card-more { color: #a0582b; font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.sd-mine-card-names { margin: 0; padding: 4px 14px 13px; color: #6a5244; font-size: 13.5px; line-height: 1.7; }
.sd .sd-mine-card-names a,
.sd .sd-mine-card-names a:link,
.sd .sd-mine-card-names a:visited { color: #4a2410; font-weight: 700; text-decoration: none; }
.sd-mine-card-names i { margin: 0 6px; color: #c8a78a; font-style: normal; }
.sd-mine-card-empty { color: #8a7263; font-size: 13px; }

/* Divider between मेरे पाठ and लोकप्रिय पाठ in the sheet */
.sd-search-divider { height: 1px; margin: 16px 6px 14px; border: 0; background: linear-gradient(90deg, transparent, #d9a86c 20%, #d9a86c 80%, transparent); }
.sd-search-divider[hidden] { display: none; }

/* मेरे पाठ card, centred: heading, a small "how it works" line, then a muted line of names (5 fit) */
.sd-mine-card { padding: 13px 14px 12px; text-align: center; cursor: pointer; }
.sd-mine-card:active { transform: scale(.99); }
.sd-mine-card:focus-visible { outline: 2px solid #b8563b; outline-offset: 2px; }
.sd-mine-card .sd-mine-card-title { display: block; margin: 0; color: #2f1a10; font-size: 15.5px; font-weight: 800; }
.sd-mine-card-sub { margin: 2px 0 0; color: #9a8878; font-size: 11.5px; font-weight: 600; }
.sd-mine-card .sd-mine-card-names { margin: 8px 0 0; padding: 0; color: #8a7263; font-size: 12px; font-weight: 700; line-height: 1.6; }
.sd-mine-card-names span { color: #8a7263; }
.sd .sd-mine-card-names a,
.sd .sd-mine-card-names a:link,
.sd .sd-mine-card-names a:visited { color: #8a4a22; font-weight: 700; text-decoration: none; }
.sd-mine-card .sd-mine-card-names i { margin: 0 5px; }

/* मेरे पाठ names as small pills: never broken mid-name, even spacing, the same look
   whether they are the person's own paaths or the popular ones shown while it is empty */
.sd-mine-card .sd-mine-card-names { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 10px; }
.sd-mine-card .sd-mine-card-names span,
.sd .sd-mine-card .sd-mine-card-names a,
.sd .sd-mine-card .sd-mine-card-names a:link,
.sd .sd-mine-card .sd-mine-card-names a:visited { padding: 4px 10px; border: 1px solid #efdcc7; border-radius: 999px; background: #fdf6ee; color: #8a4a22; font-size: 12px; font-weight: 700; line-height: 1.4; white-space: nowrap; text-decoration: none; }

/* मेरे पाठ stands out a little: a soft warm gold card (the cream/gold palette), white pills on it */
.sd-mine-card { border-color: #ecc98a; background: radial-gradient(120% 100% at 50% 0%, #fffaf0 0%, rgba(255, 250, 240, 0) 60%), linear-gradient(135deg, #fff5e0 0%, #fde7c4 100%); box-shadow: 0 8px 20px rgba(200, 140, 20, .14); }
.sd-mine-card .sd-mine-card-title { color: #4a2410; }
.sd-mine-card-sub { color: #9a7a5a; }
.sd-mine-card .sd-mine-card-names span,
.sd .sd-mine-card .sd-mine-card-names a,
.sd .sd-mine-card .sd-mine-card-names a:link,
.sd .sd-mine-card .sd-mine-card-names a:visited { border-color: #ecc98a; background: #fff; }

/* नाम लेखन opened for one god (home जप): the name chips hide */
.sd-name-chips[hidden] { display: none !important; }

/* ==========================================================================
   Bottom sheet for माला जाप + नाम लेखन (.sd-sheet): a maroon ॐ band on top (the app's
   page_intro look) over a cream body - not a full, empty screen.
   ========================================================================== */
.sd-sheet { position: fixed; inset: 0; z-index: 1450; display: flex; align-items: flex-end; justify-content: center; background: none; }
.sd-sheet[hidden] { display: none; }
.sd-sheet-backdrop { position: absolute; inset: 0; background: rgba(33, 20, 12, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.sd-sheet .sd-sheet-panel { position: relative; display: flex; flex-direction: column; align-items: stretch; width: 100%; max-width: var(--sb-app-width); height: auto; max-height: 94vh; margin: 0; padding: 0; overflow-y: auto; border-radius: 28px 28px 0 0; background: linear-gradient(180deg, #fffaf3, #fbeedd); box-shadow: 0 -12px 40px rgba(40, 18, 8, .35); color: #3a2216; animation: sdSheetUp .32s ease-out; }
@keyframes sdSheetUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }

.sd-sheet-hero { position: relative; overflow: hidden; padding: 12px 14px 16px; border-radius: 28px 28px 24px 24px; background: radial-gradient(120% 90% at 100% 0%, #a8521c 0%, rgba(168, 82, 28, 0) 60%), linear-gradient(150deg, #3b1a0e 0%, #6b2c12 55%, #9c4a1a 100%); color: #fff4e6; text-align: center; }
.sd-sheet-om { position: absolute; top: -18px; left: 8px; color: rgba(255, 220, 180, .08); font-size: 120px; font-weight: 800; line-height: 1; pointer-events: none; }
.sd-sheet-top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sd-sheet-top b { color: #fff; font-size: 16px; font-weight: 800; }
.sd-sheet-top-right { display: inline-flex; gap: 6px; }
.sd-sheet-icon { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(255, 220, 180, .25); border-radius: 12px; background: rgba(255, 255, 255, .08); color: #ffe9c7; font: inherit; font-size: 19px; line-height: 1; cursor: pointer; }
.sd-sheet-icon:active { background: rgba(255, 255, 255, .18); }

/* The count choice (11 · 21 · 51 · 108) - small translucent pills in the band, the chosen one gold */
.sd-sheet .sd-sheet-targets { position: relative; display: flex; justify-content: center; gap: 7px; width: auto; margin: 0; }
.sd-sheet .sd-sheet-targets button { min-width: 50px; padding: 5px 12px; border: 1px solid rgba(255, 213, 144, .35); border-radius: 999px; background: rgba(255, 244, 225, .08); color: #ffe9c7; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.sd-sheet .sd-sheet-targets button[aria-checked="true"] { border-color: #e7b865; background: linear-gradient(180deg, #fbe3b0, #eec27a); color: #5a2511; }

/* माला जाप: the mantra big in gold in the band; free mode's mantra chooser translucent */
.sd-sheet .sd-jaap-text { position: relative; margin: 12px 0 14px; color: #ffe2ae; font-size: 23px; font-weight: 800; line-height: 1.4; text-shadow: 0 2px 12px rgba(0, 0, 0, .25); }
.sd-sheet .sd-jaap-mantras { position: relative; width: auto; margin: 12px -14px 0; padding: 0 14px 2px; }
.sd-sheet .sd-jaap-mantra { border-color: rgba(255, 213, 144, .3); background: rgba(255, 244, 225, .08); color: #ffe9c7; }
.sd-sheet .sd-jaap-mantra small { color: rgba(255, 233, 199, .7); }
.sd-sheet .sd-jaap-mantra[aria-checked="true"] { border-color: #e7b865; background: linear-gradient(180deg, #fbe3b0, #eec27a); color: #5a2511; }
.sd-sheet .sd-jaap-mantra[aria-checked="true"] small { color: #7a3d14; }

.sd-sheet-body { display: flex; flex-direction: column; align-items: center; padding: 20px 16px calc(18px + env(safe-area-inset-bottom)); }

/* The माला: beads on a thin string around the ring, the सुमेरु bead at the top; tap anywhere */
.sd-sheet .sd-jaap-ring { --ring: min(250px, 68vw); width: var(--ring); background: none; box-shadow: none; border-radius: 50%; }
.sd-sheet .sd-jaap-ring::before { content: ''; position: absolute; inset: 11px; border: 1.5px solid rgba(164, 77, 23, .28); border-radius: 50%; }
.sd-sheet .sd-jaap-ring-fill { display: none; }
.sd-jaap-beads { position: absolute; inset: 0; --r: calc(var(--ring) / 2 - 12px); }
.sd-jaap-beads i { position: absolute; left: 50%; top: 50%; width: var(--bead, 10px); height: var(--bead, 10px); margin: calc(var(--bead, 10px) / -2) 0 0 calc(var(--bead, 10px) / -2); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3dc 0%, #dcc09a 55%, #a9825a 100%); box-shadow: 0 1px 2px rgba(90, 45, 15, .25); transform: rotate(calc((var(--i) + .5) * 360deg / var(--n))) translateY(calc(var(--r) * -1)); transition: background .25s ease, box-shadow .25s ease; }
.sd-jaap-beads i.is-on { background: radial-gradient(circle at 35% 30%, #fff6c9 0%, #f3c26b 45%, #b8741f 100%); box-shadow: 0 0 6px rgba(243, 170, 60, .55); }
.sd-jaap-beads i.is-last { box-shadow: 0 0 0 2px rgba(255, 246, 201, .9), 0 0 14px rgba(243, 170, 60, .9); }
.sd-jaap-sumeru { position: absolute; top: 0; left: 50%; width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #e8a37a 0%, #9a3b20 60%, #5a1f0c 100%); box-shadow: 0 2px 6px rgba(90, 30, 10, .4); transform: translate(-50%, 0); }
.sd-jaap-sumeru::after { content: ''; position: absolute; top: -9px; left: 50%; width: 3px; height: 10px; border-radius: 2px; background: #c0392b; transform: translateX(-50%); }
.sd-sheet .sd-jaap-ring-inner { inset: 34px; background: radial-gradient(circle at 50% 35%, #fffdf8, #fff1dc); box-shadow: inset 0 0 0 1px rgba(234, 216, 196, .9), 0 10px 28px rgba(110, 48, 15, .14); }
.sd-sheet .sd-jaap-ring-inner b { color: #7a2f14; font-size: 52px; }
.sd-sheet .sd-jaap-ring-inner em { color: #a0582b; font-weight: 700; }
.sd-sheet .sd-jaap-done { margin-top: 14px; }

/* नाम लेखन: name chips + how-to in the band; the board is a बही page */
.sd-sheet .sd-name-chips { position: relative; margin: 12px -14px 4px; padding: 2px 14px; justify-content: flex-start; }
.sd-sheet .sd-name-chips .sd-chip { border-color: rgba(255, 213, 144, .3); background: rgba(255, 244, 225, .08); color: #ffe9c7; }
.sd-sheet .sd-name-chips .sd-chip[aria-checked="true"] { border-color: #e7b865; background: linear-gradient(180deg, #fbe3b0, #eec27a); color: #5a2511; }
.sd-sheet .sd-tool-help { position: relative; margin: 10px 0 12px; color: rgba(255, 240, 225, .82); font-size: 13px; }
.sd-sheet .sd-ram-board { width: 100%; max-width: 380px; aspect-ratio: 1.45; margin: 0; border-color: #e6cfae; border-radius: 18px; background: linear-gradient(90deg, transparent 34px, rgba(196, 64, 40, .38) 34px, rgba(196, 64, 40, .38) 35.5px, transparent 35.5px), repeating-linear-gradient(0deg, transparent 0 31px, rgba(120, 150, 190, .16) 31px 32px), #fffdf6; }
.sd-ram-book { position: absolute; top: 9px; left: 44px; color: #a0582b; font-size: 11px; font-weight: 800; pointer-events: none; }
.sd-sheet .sd-ram-count { top: 8px; right: 8px; padding: 3px 10px; border-radius: 999px; background: #7a2f14; color: #ffe2ae; box-shadow: 0 3px 8px rgba(90, 30, 10, .25); }
.sd-sheet .sd-ram-count b { color: #fff; font-size: 15px; }
.sd-sheet .sd-ram-count small { color: #ffd38b; font-size: 11px; }
.sd-sheet .sd-ram-actions { max-width: 380px; margin-top: 14px; }
.sd-sheet .sd-ram-strip { max-width: 380px; }
/* Close on the right; a ghost keeps the title centred. नाम लेखन: one full-width "लिखें / ✓ लिखा" button, मिटाएँ under it */
.sd-sheet-icon--ghost { visibility: hidden; }
.sd-sheet .sd-ram-actions--stack { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.sd-sheet .sd-ram-actions--stack .sd-ram-write { min-height: 52px; }
.sd-sheet .sd-ram-write:disabled { opacity: 1; border-color: #e6cfae; background: #fff6e8; color: #a0582b; box-shadow: none; }
.sd-sheet .sd-ram-actions--stack .sd-ram-clear { min-height: 42px; border-color: transparent; background: transparent; color: #8a6d57; font-size: 14px; }
