/* Гороскоп на год: калькулятор /prognoz-na-god и толкования /prognoz-na-god/god-v-N-dome. Общие части — pages.css.
   Спрайт значков (.asc-sprite) — общий с калькулятором асцендента (templates/pages/asc/_sprite.html). */

.asc-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* форма */
.god-calc h2 { margin: 0; font: 400 clamp(1.55rem, 2.6vw, 2.2rem)/1.15 var(--display); color: var(--title); text-wrap: balance; }
.god-form { margin-top: 20px; display: grid; gap: 14px; }
.god-form .pg-calc__go { margin-top: 6px; }
.god-form .hint + .hint { margin-top: 0; }
.god-opt { font-weight: 400; color: var(--mute); font-size: .8rem; margin-left: .3em; }
/* второй ряд: одно поле той же ширины, что поля первого ряда */
.god-live { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* пустое необязательное поле не выглядит «выбранным», хотя скрытое значение заполнено */
.god-live .inp.is-picked:placeholder-shown { border-color: rgba(244, 242, 234, .35); }
.god-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; }
.god-err[hidden] { display: none; }
.btn[data-busy] { cursor: progress; }
.pg-result:focus { outline: none; }

/* результат: шапка года */
.god-res__who { font-size: .86rem; color: var(--mute); line-height: 1.5; }
.god-res__k { margin-top: 14px; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.god-res__h { margin-top: 6px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; font: 400 clamp(2rem, 4.4vw, 3.1rem)/1.05 var(--display); color: var(--title); text-wrap: balance; }
.god-res__h .glyph { width: .8em; height: .8em; align-self: center; color: var(--glow); filter: drop-shadow(0 0 10px rgba(255, 215, 114, .55)); }
.god-res__dates { margin-top: 10px; color: var(--ink); line-height: 1.6; }
.god-res__dates strong { font-weight: 500; }
.god-res__short { margin-top: 14px; line-height: 1.65; color: var(--ink); max-width: 64ch; }
.god-res__p { margin-top: 10px; color: var(--mute); line-height: 1.6; max-width: 64ch; }
.god-res__p strong { color: var(--ink); font-weight: 500; }
.god-res__link { margin-top: 6px; }
.god-res__link a, .pg-result a.god-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; }
.god-res h3 { margin: 0; font: 400 clamp(1.3rem, 2vw, 1.7rem)/1.2 var(--display); color: var(--title); }
.god-res h3 + .god-res__p { margin-top: 8px; }
.god-res .pg-facts { margin-top: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.god-res .pg-facts div { background: rgba(8, 14, 52, .72); }
.god-res .pg-facts dd { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 1.25rem; }
.god-res .pg-facts dd small { flex-basis: 100%; font: 400 .84rem/1.4 var(--text); color: var(--mute); }
.god-res .pg-facts dd .glyph { flex: none; width: 22px; height: 22px; color: var(--glow); }
.god-res .pg-facts dd .r { color: var(--tense); font: 400 .84rem/1 var(--text); }
.god-res__ages { margin-top: 14px; padding: 14px 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; }
.god-res__ages strong { color: var(--ink); font-weight: 500; }
.god-res__notime { margin-top: 14px; padding: 14px 18px; border-left: 2px solid var(--tense); background: rgba(201, 169, 255, .07); border-radius: 0 14px 14px 0; color: var(--mute); line-height: 1.6; }
.god-res__notime a { color: var(--glow-hi); }
.god-res__order { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.god-res__order .btn { min-height: 48px; }
.god-res__order .btn--ghost { min-height: 48px; }
.god-res__order p { margin: 0; color: var(--mute); font-size: .9rem; max-width: 46ch; line-height: 1.5; }

/* таблица домов года */
.god-table .god-table__s { white-space: normal; min-width: 260px; }
.god-table a { color: var(--glow-hi); text-decoration-color: rgba(255, 215, 114, .45); text-underline-offset: .2em; }

/* сетка ссылок на толкования внутри .pg__text: без маркеров списка */
.pg__text.god-houses { max-width: none; }
.god-houses > p { max-width: 72ch; }
.god-houses .pg-grid li { margin-top: 0; padding-left: 0; }
.god-houses .pg-grid li::before { content: none; }
.god-houses .pg-grid .g { font: 400 1.05rem/1 var(--display); }
.god-nb { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; }
.god-nb a, .god-nb span { display: inline-flex; align-items: center; min-height: 44px; }
.god-nb span { color: var(--mute); }

/* страница дома */
.god-facts { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.god-facts div { background: rgba(8, 14, 52, .72); }
.god-facts dd { font-size: 1.2rem; }
.god-facts dd small { display: block; margin-top: 4px; font: 400 .8rem/1.3 var(--text); color: var(--mute); }
.god-h-num { 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); font: 400 .7em/1 var(--display); }
.god-go h2 { margin: 0; font: 400 clamp(1.5rem, 2.4vw, 2rem)/1.15 var(--display); color: var(--title); }
.god-go p { margin-top: 12px; color: var(--mute); max-width: 60ch; line-height: 1.6; }
.god-go .god-go__btn { margin-top: 18px; }
.god-go .btn--ghost { min-height: 48px; }

@media (max-width: 640px) {
  .god-live { grid-template-columns: minmax(0, 1fr); }
  .god-form .pg-calc__go .btn { width: 100%; }
  .god-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .god-facts div { padding: 14px 14px; }
  .god-res__order .btn { width: 100%; justify-content: center; }
  .god-nb { flex-direction: column; }
}
@media (prefers-reduced-motion: no-preference) {
  .pg-result:not([hidden]) .god-res { animation: god-in .6s var(--ease, ease-out) both; }
  @keyframes god-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}
