/* Saturn periods: the existing Kundli shell, white canvas and calm green structure. */
.shani-section{border-bottom:0!important}
.shani-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:32px;margin:0 0 20px}
.shani-heading .eyebrow{color:var(--red);margin-bottom:8px;font-size:14px}
.shani-heading h2{font:500 34px/1.25 var(--serif);color:var(--deep);margin:0 0 10px}
.shani-intro{color:var(--muted);font-size:17px}
.shani-heading .date-control{flex-shrink:0;gap:10px;margin-bottom:4px}
.shani-context{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:14px;color:var(--green);margin-bottom:24px}
.shani-context>#shani-moon{display:flex;gap:8px;align-items:center}
.shani-context>#shani-moon::before{content:'☾';font-size:23px;line-height:1}

.shani-overview{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:24px;align-items:start}
.shani-status{background:#f0f5f0;border:1px solid #cadacd;border-radius:20px;overflow:hidden;display:flex;flex-direction:column}
.shani-status-top{padding:26px 28px 24px;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:192px}
.shani-status-top>div{min-width:0;flex:1}
.shani-status .eyebrow{font-size:14px;margin-bottom:9px;color:var(--green)}
.shani-status h3{font:500 30px/1.2 var(--serif);color:var(--deep);margin:0 0 12px}
.shani-status-note{font-size:16px;color:var(--muted);line-height:1.55;max-width:310px}
.shani-art{width:128px;height:116px;flex:0 0 128px}
.shani-phase-label{display:inline-flex;gap:6px;align-items:center;font-size:14px;color:var(--green);font-weight:600;margin-top:12px}
.shani-phase-label svg{width:16px;height:16px}
.shani-status-pair{display:grid;grid-template-columns:1fr 1fr;padding:0 28px 22px;gap:16px}
.shani-status-pair>div{border-top:1px solid #cdddcf;padding-top:14px;display:flex;flex-direction:column;gap:8px}
.shani-status-pair>div{min-width:0}
.shani-dasha-dates{font-size:13px;line-height:1.5;color:var(--muted);max-width:100%}
.shani-dasha-link{display:flex;align-items:center;gap:8px;align-self:flex-start;min-height:44px;margin:-8px 28px 12px;font-size:14px;font-weight:600;color:var(--green);text-align:left}
.shani-dasha-link:hover{text-decoration:underline;text-underline-offset:4px}
.shani-dasha-link svg{width:16px;height:16px}
.shani-status-pair>div>span{font-size:14px;color:var(--muted)}
.shani-status-pair strong{font-size:16px;font-weight:500;display:flex;align-items:center;gap:6px}
.shani-status-pair strong svg{width:17px;height:17px;color:#73907a}
.shani-status-pair strong.is-active{font-weight:600;color:var(--green)}
.shani-status-pair strong.is-active svg{color:var(--green)}
.shani-next{width:100%;text-align:left;display:flex;align-items:center;gap:12px;background:#fff;padding:18px 28px;margin-top:auto;border-top:1px solid #cadacd}
.shani-next:hover{background:#fafcf9}
.shani-next-symbol{width:38px;height:38px;background:#f7f1e7;color:#9a7441;border-radius:50%;display:grid;place-items:center;flex-shrink:0}
.shani-next-symbol svg{width:19px;height:19px}
.shani-next>div{display:flex;flex-direction:column;gap:3px}
.shani-next small{font-size:12px;color:var(--red);font-weight:600;letter-spacing:.02em}
.shani-next strong{font-size:16px;font-weight:600}
.shani-next>div>span{font-size:14px;color:var(--muted)}
.shani-next>svg{margin-left:auto;color:var(--green);width:18px;height:18px}
.shani-guide{border:1px solid var(--line);border-radius:20px;padding:24px 26px}
.shani-guide h3,.shani-timeline h3,.shani-faq h3{font-size:21px;font-weight:600;margin:0 0 9px;color:var(--text)}
.shani-guide>p{font-size:14px;line-height:1.5;color:var(--muted);margin:0 0 18px}
.shani-phase-guide{list-style:none;margin:0;padding:0}
.shani-phase-guide li{display:flex;align-items:center;gap:12px;padding:13px 0;position:relative}
.shani-phase-guide li+li::before{content:'';width:1px;height:26px;position:absolute;left:16px;top:-13px;background:#d9e3da}
.phase-number{display:grid;place-items:center;width:33px;height:33px;border:1px solid #b9ccbd;background:#fff;border-radius:50%;color:#5e7966;font-size:14px;font-weight:600;flex-shrink:0;position:relative;z-index:1}
.shani-phase-guide strong{font-size:16px;font-weight:600;display:block}
.shani-phase-guide li>div>span{display:block;font-size:14px;color:var(--muted);line-height:1.45;margin-top:3px}
.shani-phase-guide li>svg{width:16px;height:16px;margin-left:auto;color:var(--green)}
.shani-phase-guide .is-current .phase-number{background:var(--green);color:#fff;border-color:var(--green)}
.shani-phase-guide .is-current strong{color:var(--green)}








/* The guide explains only the selected status, with the same Moon reference. */
.shani-count-note>span{display:block;margin-top:5px;font-size:13px}
.shani-sign-connection{display:grid;grid-template-columns:minmax(0,1fr) 18px minmax(0,1fr);gap:14px;align-items:center;background:#f5f7f3;border-radius:12px;padding:14px 16px;margin-bottom:18px}
.shani-sign-connection>div{display:flex;flex-direction:column;gap:3px}
.shani-sign-connection small{font-size:12px;color:var(--muted)}
.shani-sign-connection strong{font-size:17px;font-weight:600;color:var(--green)}
.shani-sign-connection>svg{width:18px;height:18px;color:#8a9b8e}
.shani-guide .shani-rule-note{margin:0 0 14px;font-size:14px;line-height:1.6}
.shani-dhaiya-positions{display:grid;gap:10px}
.shani-dhaiya-positions>div{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:12px;padding:12px}
.shani-dhaiya-positions>div>div{flex:1;min-width:0}
.shani-dhaiya-positions strong{display:block;font-size:16px;font-weight:600}
.shani-dhaiya-positions>div>div>span{display:block;color:var(--muted);font-size:13px;margin-top:2px}
.shani-dhaiya-positions>div>svg{width:16px;height:16px;color:var(--green)}
.shani-dhaiya-positions .is-current{background:#f0f5f0;border-color:#a8bdae}
.shani-dhaiya-positions .is-current .phase-number{background:var(--green);border-color:var(--green);color:#fff}
.shani-inactive-rules{margin:0;font-size:14px}
.shani-inactive-rules>div{display:flex;justify-content:space-between;gap:16px;padding:13px 0;border-top:1px solid var(--line)}
.shani-inactive-rules dt{font-weight:600;flex-shrink:0}
.shani-inactive-rules dd{margin:0;text-align:right;color:var(--muted)}
.shani-timeline{margin-top:38px}
.shani-timeline-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:16px}
.shani-timeline-heading h3{margin:0}
.shani-period-mode{display:flex;border-bottom:1px solid var(--line);gap:20px;align-self:flex-end}
.shani-period-mode button{min-height:44px;color:var(--muted);padding:8px 0;border-bottom:2px solid transparent;font-size:14px;font-weight:600}
.shani-period-mode button[aria-pressed=true]{border-bottom-color:var(--red);color:var(--green)}
.shani-filters{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}
.shani-filters button{border:1px solid #d4ddd5;border-radius:24px;padding:7px 15px;font-size:14px;min-height:40px;color:var(--muted);font-weight:500;background:white}
.shani-filters button[aria-pressed=true]{background:var(--green);color:white;border-color:var(--green)}
.shani-period{border:1px solid #d6e1d8;border-radius:12px;margin:0 0 10px;overflow:hidden;background:#fff}
.shani-period summary{display:flex;align-items:center;gap:14px;list-style:none;padding:17px 20px;min-height:86px;cursor:pointer}
.shani-period summary::-webkit-details-marker{display:none}
.shani-period-mark{width:38px;height:38px;display:grid;place-items:center;flex-shrink:0;border-radius:50%;background:#eef3ed;color:#66806d}
.shani-period-mark svg{width:18px;height:18px}
.shani-period-name{min-width:0;flex:1}
.shani-period-name strong{display:block;font-size:17px;font-weight:600}
.shani-period-name>span{font-size:14px;color:var(--muted);display:block;margin-top:4px}
.shani-period-name em{font:inherit;color:var(--red)}
.shani-period-dates{font-size:14px;color:var(--muted);text-align:right;line-height:1.5;display:flex;flex-direction:column;gap:5px}
.shani-period-dates small{font-size:12px;font-weight:600;color:var(--green)}
.shani-period summary>svg{width:16px;height:16px;color:var(--green);flex-shrink:0;transition:transform .15s}
.shani-period[open] summary>svg{transform:rotate(180deg)}
.shani-period.is-current{border-color:#86a58e;background:#f6f9f5}
.shani-period.is-current .shani-period-mark{background:var(--green);color:#fff}
.shani-period-body{display:flex;gap:36px;flex-wrap:wrap;margin:0 20px 0 72px;padding:15px 0 18px;border-top:1px solid var(--line)}
.shani-period-body>div{display:flex;flex-direction:column;gap:4px}
.shani-period-body small{font-size:12px;color:var(--muted)}
.shani-period-body strong{font-size:16px;font-weight:600}
.shani-period-body strong>span{font-size:14px;font-weight:400;color:var(--muted)}
.shani-period-body p{flex-basis:100%;font-size:14px;color:var(--muted);line-height:1.6;margin:0;max-width:680px}
.shani-faq{margin-top:38px;border-top:1px solid var(--line);padding-top:28px}
.shani-faq h3{margin-bottom:14px}
.shani-faq details{border-bottom:1px solid var(--line)}
.shani-faq summary{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:17px 0;min-height:56px;cursor:pointer;font-size:16px;font-weight:500;list-style:none}
.shani-faq summary::-webkit-details-marker{display:none}
.shani-faq summary svg{width:17px;height:17px;color:var(--green);flex-shrink:0}
.shani-faq details[open] summary svg{transform:rotate(45deg)}
.shani-faq details p{padding:0 28px 18px 0;line-height:1.7;color:var(--muted);font-size:15px;max-width:800px}
.shani-timing-note{font-size:14px;color:var(--muted);margin:20px 0 0}

.shani-availability,.shani-empty{text-align:center;padding:52px 24px;background:#f7f9f6;border:1px solid var(--line);border-radius:16px}
.shani-availability>svg,.shani-empty>svg{width:32px;height:32px;color:#6c8a75;margin-bottom:16px}
.shani-availability h3,.shani-empty h4{font-size:22px;font-weight:600;margin:0 0 12px}
.shani-availability p,.shani-empty p{max-width:440px;margin:0 auto 14px;color:var(--muted);font-size:16px;line-height:1.6}
.shani-availability .share-button{margin-top:8px}
@media(max-width:1100px){.shani-overview{gap:18px}.shani-status-top{padding:24px 22px}.shani-status-pair{padding-inline:22px}.shani-status h3{font-size:28px}.shani-art{width:100px;height:100px;flex-basis:100px}.shani-guide{padding:22px}.shani-next{padding-inline:22px}}
@media(max-width:760px){
 .kundli-page .view-nav{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.7fr) minmax(0,1.2fr);gap:14px}
 .kundli-page .view-nav button{white-space:normal;line-height:1.4;padding:12px 0;min-height:62px;text-align:left}
 .shani-heading{display:block;margin-bottom:18px}.shani-heading h2{font-size:29px}.shani-intro{font-size:16px;line-height:1.5}.shani-heading .eyebrow{font-size:13px}.shani-heading .date-control{margin-top:20px;display:flex;gap:10px}.shani-heading .date-control input{flex:0 1 auto;min-width:0}.shani-heading .date-control>.text-button{margin-left:auto}
 .shani-context{margin-bottom:20px;gap:10px;font-size:14px}
 .shani-overview{grid-template-columns:minmax(0,1fr);gap:20px}.shani-status-top{padding:23px 20px;min-height:160px;gap:8px}.shani-status h3{font-size:28px;max-width:340px}.shani-status-note{font-size:15px}.shani-art{width:105px;height:98px;flex-basis:105px}.shani-status-pair{padding:0 20px 21px;gap:18px}.shani-next{padding:16px 20px}.shani-next strong{font-size:16px}
 .shani-guide{padding:22px 20px}.shani-guide h3,.shani-timeline h3,.shani-faq h3{font-size:21px}.shani-phase-guide{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:20px}.shani-phase-guide li{display:block;padding:0}.shani-phase-guide li+li::before{left:-12px;top:16px;width:calc(100% + 12px);height:1px}.shani-phase-guide .phase-number{margin-bottom:11px}.shani-phase-guide strong{font-size:15px}.shani-phase-guide li>div>span{font-size:13px;line-height:1.6}.shani-phase-guide li>svg{position:absolute;top:8px;left:38px;width:15px;height:15px}
 .shani-timeline{margin-top:28px}.shani-timeline-heading{display:block;margin-bottom:16px}.shani-period-mode{margin-top:10px;gap:24px;justify-content:flex-start}.shani-period-mode button{min-height:46px;font-size:15px}.shani-filters{gap:7px;flex-wrap:nowrap}.shani-filters button{padding:7px 12px;white-space:normal;font-size:14px}
 .shani-period summary{display:grid;grid-template-columns:34px minmax(0,1fr) 16px;gap:4px 11px;padding:15px 14px}.shani-period-mark{width:34px;height:34px;grid-column:1;grid-row:1/3;align-self:start;margin-top:2px}.shani-period-name{grid-column:2;grid-row:1}.shani-period-name strong{font-size:16px}.shani-period-name>span{font-size:14px;margin-top:3px}.shani-period-dates{grid-column:2;grid-row:2;text-align:left;font-size:13px;margin-top:3px;gap:3px}.shani-period summary>svg{grid-column:3;grid-row:1/3}.shani-period-body{margin:0 14px 0 59px;gap:14px;padding:13px 0 16px;display:grid;grid-template-columns:1fr}.shani-period-body p{font-size:14px}.shani-faq{margin-top:30px;padding-top:24px}.shani-faq summary{font-size:15px}.shani-faq details p{font-size:14px}.shani-timing-note{font-size:13px}
}
@media(max-width:390px){.kundli-page .view-nav{gap:12px}.kundli-page .view-nav button{font-size:14px}.shani-heading h2{font-size:27px}.shani-status h3{font-size:26px}.shani-art{width:74px;height:86px;flex-basis:74px}.shani-status-top{padding-inline:17px}.shani-status-pair{padding-inline:17px;gap:12px}.shani-status-pair strong{font-size:14px;gap:4px}.shani-context{align-items:flex-start}.shani-filters button{padding-inline:10px;font-size:13px}.shani-guide{padding:20px 17px}.shani-phase-guide{gap:9px}.shani-phase-guide strong{font-size:14px}.shani-phase-guide li>div>span{font-size:12px}.shani-period-body{margin-left:14px}.shani-period-mark{width:30px;height:30px}}
@media(prefers-reduced-motion:reduce){.shani-period summary>svg{transition:none}}
@media(max-width:760px){.shani-dasha-link{margin-inline:20px}.shani-status-pair{row-gap:20px}.shani-status-top{align-items:flex-start}.shani-art{margin-top:24px;width:78px;flex-basis:78px}}
@media(max-width:390px){.shani-dasha-link{margin-inline:17px}.shani-status-top{display:block;position:relative}.shani-status-top .eyebrow{padding-right:64px;min-height:36px;display:flex;align-items:center;margin-bottom:14px}.shani-art{position:absolute;right:17px;top:16px;width:64px;height:58px;margin:0}.shani-status h3{max-width:none}.shani-dasha-dates{font-size:12px}}
