:root{--ck-fast:120ms;--ck-mid:220ms;--ck-ease:cubic-bezier(.4,0,.2,1)}
.ck-tl{display:inline-flex;margin-left:6px;font-family:var(--font-mono);font-size:12px;letter-spacing:.08em;text-transform:uppercase;line-height:1;white-space:nowrap}
html[data-theme="dark"] .ck-tl-l,html[data-theme="light"] .ck-tl-d{display:none}
html[lang^="en"] .ck-tl>:not(.ck-en),html:not([lang^="en"]) .ck-tl>.ck-en{display:none}
.theme-toggle:not(#lang-btn){width:auto!important;min-width:36px;padding:0 10px!important;gap:6px}
.theme-toggle[aria-label="Toggle theme"]{border-radius:18px!important}
@media(max-width:600px){
  .theme-toggle[aria-label="Toggle theme"] .ck-tl{display:none}
  .theme-toggle[aria-label="Toggle theme"]{width:36px!important;min-width:36px;padding:0!important;border-radius:50%!important}
}
.theme-toggle[aria-label="Toggle theme"]~.header{padding-right:max(20px,min(124px,calc(680px - 50vw)))}
@media(max-width:600px){.theme-toggle[aria-label="Toggle theme"]~.header{padding-right:60px}}
a,button,input,select,textarea,summary,[role=button],[role=switch],[role=tab],.theme-toggle{transition-duration:var(--ck-fast)!important;transition-timing-function:var(--ck-ease)!important}
[data-theme]{
  --void:var(--surface-page);--bg:var(--surface-page);--surface:var(--surface-card);--bg-card:var(--surface-card);
  --mars-d:var(--surface-card);--mint-d:var(--surface-card);--surface-2:var(--surface-focal);--raised:var(--surface-focal);
  --bg-raised:var(--surface-focal);--gold-d:var(--surface-focal);--rahu-d:var(--surface-focal);--card-hover:var(--surface-focal);
  --gold:var(--accent-struct-text);--gold-b:var(--accent-struct-text);--gold-l:var(--accent-struct-text);
  --rahu:var(--accent-struct-text);--brass:var(--accent-struct-text);--acc:var(--accent-struct-text);
  --mars:var(--status-bad);--mars-l:var(--status-bad);--danger:var(--status-bad);
  --mint:var(--accent-action-text);--mint-p:var(--accent-action-text);--mint-l:var(--accent-action-text);
  --accent:var(--accent-action-text);--accent-b:var(--accent-action-text);
  --text:var(--text-ink);--text-m:var(--text-body);--text-d:var(--text-muted);--text-dim:var(--text-muted);
  --border:var(--hairline);--border-s:var(--hairline);--border-hover:var(--hairline);--gold-dim:var(--hairline);
  --niche-line:var(--hairline);--niche-glow:var(--hairline-2);--accent-glow:var(--hairline-2);
  --warn:var(--status-warn);--good:var(--status-good);--niche:var(--accent-struct);--ink:var(--text-on-action)
}
html{font-synthesis:none;max-width:100%;overflow-x:clip}
body{font-family:var(--font-body);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;max-width:100%;overflow-x:clip}
h1,h2,h3,h4{font-family:var(--font-display);font-weight:500;font-optical-sizing:auto;font-variant-numeric:lining-nums;color:var(--text-ink)!important;text-wrap:balance}
p{text-wrap:pretty}
em{color:inherit}
:focus-visible{outline:2px solid var(--accent-action);outline-offset:2px}
h1{font-size:var(--fs-h1)!important;line-height:var(--lh-tight)}
h2{font-size:var(--fs-h3)!important;line-height:var(--lh-snug)}
h3{font-size:var(--fs-h4)!important;line-height:var(--lh-snug)}
h4{font-size:var(--fs-lead)!important;line-height:var(--lh-snug)}
@media(max-width:600px){h2{font-size:var(--fs-h4)!important}h3{font-size:var(--fs-lead)!important}}
.header-controls .theme-toggle{border-radius:18px!important}
.sc-btn-sm[style*="opacity: 0.4"]{opacity:1!important;background:transparent!important;color:var(--accent-action-text)!important;box-shadow:inset 0 0 0 1px var(--accent-action)}
#moon-container{--sw-bg:var(--surface-card);--sw-text:var(--text-ink);--sw-text-dim:var(--text-muted);--sw-brass:var(--accent-struct-text);--sw-border:var(--hairline)}
#moon-container .sw-moon-sub,#moon-container .sw-moon-nak{opacity:1!important}
#natal-result .ww-b3card,#natal-result .ww-card{background:var(--surface-page)!important}
#feedback-form button[type=submit]{background:var(--accent-action)!important;color:var(--text-on-action)!important}
.legal-static,.legal-static a{color:var(--text-muted)!important}*,*::before,*::after{box-sizing:border-box}
body{margin:0;background:var(--surface-page);color:var(--text-ink);font-family:var(--font-body);line-height:1.75;font-size:16px}
a{color:var(--accent-struct-text);text-decoration:none}
a:hover{text-decoration:underline}
#themeToggle.theme-toggle{width:auto!important;min-width:36px!important;height:36px!important;min-height:36px!important;padding:0 10px!important;border-radius:18px!important;font-size:13px!important;gap:5px!important}
#themeToggle .ck-tl{display:inline-flex!important;margin-left:4px!important;font-size:12px!important;letter-spacing:.06em!important}
#langToggle.lang-toggle{width:36px!important;min-width:36px!important;height:36px!important;min-height:36px!important;border-radius:50%!important;font-size:12px!important}
.header-inner{padding:0 14px;gap:8px}
.header-controls{gap:6px;flex-shrink:0}
.header-nav a,.header-nav button,.breadcrumbs a,.nav-signs a{min-height:36px;display:inline-flex;align-items:center}
/* Editorial / doc container (about, metodologiya, accuracy) */
.wrap,.sub-container{max-width:780px;margin:0 auto;padding:0 20px}
.sub-container{padding-top:32px;padding-bottom:56px}
.sub-header{border-bottom:1px solid var(--hairline);padding:14px 0}
.sub-header .wrap{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px}
.sub-header a.logo{font-family:var(--font-display);color:var(--accent-struct-text);text-decoration:none;font-size:18px;letter-spacing:.14em;min-height:36px;display:inline-flex;align-items:center}
.sub-header nav{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.sub-header nav a{color:var(--text-body);font-size:13px;min-height:36px;display:inline-flex;align-items:center}
.sub-header nav a:hover{color:var(--accent-struct-text)}
.crumb,.breadcrumbs{font-size:13px;color:var(--text-muted);margin:0 0 14px;display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.crumb a,.breadcrumbs a{color:var(--text-muted)}
.subtitle{font-size:14px;color:var(--text-muted);margin:0 0 24px}
.section-num{display:inline-block;font-family:var(--font-mono);font-size:12px;letter-spacing:.14em;color:var(--accent-struct-text);margin-top:20px}
.def,.lead-box{background:var(--surface-card);border:1px solid var(--hairline);border-left:3px solid var(--accent-struct-text);border-radius:0 6px 6px 0;padding:16px 20px;margin:0 0 18px;font-size:16px;line-height:1.7}
.def strong,.lead-box strong{color:var(--text-ink)}
.tldr{color:var(--text-body);font-style:italic;margin:0 0 24px;font-size:15px}
.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 24px}
@media(max-width:680px){.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.kpi-card{background:var(--surface-card);border:1px solid var(--hairline);border-radius:4px;padding:12px 14px}
.kpi-lbl{font-family:var(--font-mono);font-size:12px;color:var(--text-muted);text-transform:uppercase;letter-spacing:.06em}
.kpi-val{font-family:var(--font-display);font-size:16px;color:var(--text-ink);margin-top:4px}
.tbl-wrap{width:100%;overflow-x:auto;margin:18px 0}
.sub-main table,.wrap table,.sub-container table{width:100%;border-collapse:collapse;font-size:14px;margin:12px 0}
.sub-main th,.sub-main td,.wrap th,.wrap td,.sub-container th,.sub-container td{text-align:left;padding:9px 10px;border-bottom:1px solid var(--hairline);vertical-align:top}
.sub-main th,.wrap th,.sub-container th{color:var(--accent-struct-text);font-weight:600;font-size:12px;letter-spacing:.04em;text-transform:uppercase}
.mono{font-family:var(--font-mono);font-size:13px}
.trust,.cite-box{background:var(--surface-card);border:1px solid var(--hairline);border-radius:6px;padding:18px 20px;margin:24px 0}
.trust h2{margin-top:0}
.cite-box pre{margin:10px 0 12px;padding:12px;background:var(--surface-focal);border:1px solid var(--hairline);border-radius:4px;font-family:var(--font-mono);font-size:12px;line-height:1.55;white-space:pre-wrap;word-break:break-word;color:var(--text-ink)}
.copy-btn{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:8px 16px;border:1px solid var(--accent-action);border-radius:3px;background:var(--accent-action);color:var(--text-on-action);font-family:var(--font-body);font-size:13px;cursor:pointer}
.cta{display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin:20px 0 8px;padding:11px 22px;border:1px solid var(--accent-action);border-radius:3px;background:var(--accent-action);color:var(--text-on-action)!important;text-decoration:none!important;font-weight:500;font-size:14px}
.upd{color:var(--text-muted);font-size:13px;margin-top:26px;border-top:1px solid var(--hairline);padding-top:14px}
.sub-footer{border-top:1px solid var(--hairline);padding:22px 0;font-size:13px;color:var(--text-muted);margin-top:32px}
.sub-footer nav{display:flex;flex-wrap:wrap;gap:14px;margin-top:8px}
.sub-footer a{color:var(--text-muted);min-height:36px;display:inline-flex;align-items:center}
.sub-footer a:hover{color:var(--accent-struct-text)}
/* 12 Daily sign pages */
.horo-sign-sec{padding:96px 0 48px!important;min-height:0!important;display:block!important;background:transparent!important}
.horo-daily-card{background:var(--surface-card)!important;border:1px solid var(--hairline)!important;border-radius:4px!important}
.horo-daily-general{height:auto!important;min-height:96px;overflow:visible!important}
.horo-daily-areas{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;height:auto!important;overflow:visible!important}
@media(max-width:720px){.horo-daily-areas{grid-template-columns:1fr!important}}
#otherSigns{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin-top:18px}
#otherSigns a.hero-sign-btn{min-width:44px!important;min-height:44px!important;padding:6px 8px!important;display:inline-flex;align-items:center;justify-content:center}
#sutra-footer a,.header-nav a,.meta-table td{font-size:max(12px,1em)}
@media(max-width:600px){
  table{display:block;overflow-x:auto}
  #sutra-footer>div:first-child{grid-template-columns:1fr!important;gap:16px!important}
}

.header-logo,.logo{min-height:36px;display:inline-flex;align-items:center}
#progressions-calc label,#lunar-return-calc label,#solar-return-calc label,#transits-calc label,#progressions-calc span,#lunar-return-calc span,#solar-return-calc span{font-size:max(12px,1em)}
[style*='font-size:10px'],[style*='font-size: 10px'],[style*='font-size:11px'],[style*='font-size: 11px']{font-size:12px!important}
