/* Асцендент: калькулятор /ascendent и толкования /ascendent/<знак>. Общие части — pages.css. */

.asc-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* форма */
.asc-calc h2 { margin: 0; font: 400 clamp(1.55rem, 2.6vw, 2.2rem)/1.15 var(--display); color: var(--title); text-wrap: balance; }
.asc-form { margin-top: 20px; display: grid; gap: 14px; }
.asc-form .pg-calc__go { margin-top: 6px; }
.asc-err { margin: 0; padding: 12px 16px; color: var(--ink); line-height: 1.5; background: rgba(201, 169, 255, .08); border: 1px solid rgba(201, 169, 255, .5); border-radius: 14px; }
.asc-err[hidden] { display: none; }
.btn[data-busy] { cursor: progress; }
.pg-result:focus { outline: none; }

/* результат */
.asc-res { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: clamp(22px, 4vw, 52px); align-items: center; }
.asc-res__wheel { width: 100%; max-width: 320px; margin: 0 auto; }
.asc-wheel { display: block; width: 100%; height: auto; overflow: visible; }
.asc-res__who { font-size: .86rem; color: var(--mute); line-height: 1.5; }
.asc-res__k { margin-top: 14px; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.asc-res__sign { margin-top: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font: 400 clamp(2.3rem, 5vw, 3.4rem)/1 var(--display); color: var(--title); }
.asc-res__sign .glyph { width: .85em; height: .85em; color: var(--glow); filter: drop-shadow(0 0 10px rgba(255, 215, 114, .55)); }
.asc-res__deg { font: 400 1rem/1 var(--mono); color: var(--mute); }
.asc-res__short { margin-top: 16px; line-height: 1.65; color: var(--ink); max-width: 60ch; }
.asc-res__link { margin-top: 6px; }
.asc-res__link a, .pg-result a.asc-more { display: inline-flex; align-items: center; min-height: 44px; color: var(--glow-hi); text-decoration-color: rgba(255, 215, 114, .45); text-underline-offset: .2em; }
.asc-res__sun { margin-top: 10px; color: var(--mute); line-height: 1.6; max-width: 60ch; }
.asc-res2 .pg-facts { margin-top: 0; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.asc-res2 .pg-facts dd { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 1.3rem; }
.asc-res2 .pg-facts dd small { flex-basis: 100%; font: 400 .86rem/1.4 var(--text); color: var(--mute); }
.asc-res2 .pg-facts dd .glyph { flex: none; width: 22px; height: 22px; color: var(--glow); }
.asc-res2 .pg-facts dd .asc-deg { font: 400 .9rem/1 var(--mono); color: var(--mute); }
.asc-win { margin-top: 20px; padding: 16px 18px; border-left: 2px solid var(--glow); background: rgba(255, 215, 114, .05); border-radius: 0 14px 14px 0; color: var(--mute); line-height: 1.6; }
.asc-win strong { color: var(--ink); font-weight: 500; }
.asc-win--edge { border-left-color: var(--tense); background: rgba(201, 169, 255, .07); }
.asc-res__again { margin-top: 18px; }
.asc-res__again .btn { min-height: 48px; }

/* круг карты: знаки, дома, оси */
.asc-wheel .ring { fill: none; stroke: rgba(244, 242, 234, .38); stroke-width: 1; }
.asc-wheel .ring--in { stroke: rgba(244, 242, 234, .22); }
.asc-wheel .disk { fill: rgba(6, 12, 50, .55); }
.asc-wheel .tick { stroke: rgba(244, 242, 234, .3); stroke-width: 1; }
.asc-wheel .cusp { stroke: rgba(182, 194, 240, .28); stroke-width: 1; }
.asc-wheel .hnum { fill: var(--mute); font: 400 9px/1 var(--mono); text-anchor: middle; dominant-baseline: central; }
.asc-wheel use { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; color: var(--mute); }
.asc-wheel use.is-asc { color: var(--glow); }
.asc-wheel .axis { stroke: var(--glow); stroke-width: 2; stroke-linecap: round; }
.asc-wheel .axis--mc { stroke-width: 1.2; stroke-dasharray: 4 4; stroke-opacity: .8; }
.asc-wheel .lbl { fill: var(--glow-hi); font: 600 10px/1 var(--text); letter-spacing: .06em; dominant-baseline: central; }
.asc-wheel .pl-dot { fill: var(--ink); }
.asc-wheel use.pl { color: var(--ink); stroke-width: 1.8; }
.asc-wheel use.pl--sun { color: var(--glow-hi); }

/* таблица знаков и управителей */
.asc-table__s { display: inline-flex; align-items: center; gap: 10px; }
.asc-table__s .glyph { width: 18px; height: 18px; color: var(--glow); }
.asc-table a { color: var(--glow-hi); text-decoration-color: rgba(255, 215, 114, .45); text-underline-offset: .2em; }

/* страница знака */
.asc-facts { grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); }
.asc-facts div, .asc-res2 .pg-facts div { background: rgba(8, 14, 52, .72); }
.asc-facts dd { font-size: 1.25rem; }
.asc-facts dd small { display: block; margin-top: 4px; font: 400 .8rem/1.3 var(--text); color: var(--mute); }
.asc-h-glyph { display: inline-grid; place-items: center; vertical-align: -.12em; width: 1.25em; height: 1.25em; margin-right: .35em; border: 1px solid rgba(255, 215, 114, .4); border-radius: 50%; color: var(--glow); }
.asc-h-glyph .glyph { width: .8em; height: .8em; }
.asc-go h2 { margin: 0; font: 400 clamp(1.5rem, 2.4vw, 2rem)/1.15 var(--display); color: var(--title); }
.asc-go p { margin-top: 12px; color: var(--mute); max-width: 60ch; line-height: 1.6; }
.asc-go .asc-go__btn { margin-top: 18px; }
.asc-go .btn--ghost { min-height: 48px; }
.asc-signs > p { margin-top: 18px; }
/* сетка ссылок внутри текста статьи: без маркеров списка .pg__text */
.pg__text.asc-signs { max-width: none; }
.asc-signs > p { max-width: 72ch; }
.asc-signs .pg-grid li { margin-top: 0; padding-left: 0; }
.asc-signs .pg-grid li::before { content: none; }

@media (max-width: 760px) {
  .asc-res { grid-template-columns: minmax(0, 1fr); }
  .asc-res__wheel { max-width: 280px; }
}
@media (max-width: 640px) {
  .asc-form .pg-calc__go .btn { width: 100%; }
  .asc-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .asc-facts div { padding: 14px 14px; }
}
@media (prefers-reduced-motion: no-preference) {
  .pg-result:not([hidden]) .asc-res { animation: asc-in .6s var(--ease, ease-out) both; }
  @keyframes asc-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}
