/* Аркан по дате рождения на редизайне. Разметку результата рисует /js/ezoterika/arkan-po-date-rozhdeniya.js,
   блок «Эта же дата» — /js/ezoterika/date-transfer.js (его style#dt-style перебивается специфичностью). */

/* ===== форма ===== */
.rd #arkan-calc .rda-form { display: flex; flex-direction: column; gap: 28px; margin: 0; }
.rd #arkan-calc .arkan-intro-line { margin: 0; font: 400 15px/1.5 var(--f-ui); color: var(--mute); }
.rd #arkan-calc .arkan-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rd #arkan-calc .arkan-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; }
.rd #arkan-calc .arkan-field label { margin: 0; font: 400 11px/1.3 var(--f-mono); letter-spacing: 1px; text-transform: uppercase; color: var(--mute); }
.rd #arkan-calc .arkan-sel { -webkit-appearance: none; appearance: none; box-sizing: border-box; width: 100%; height: 48px; margin: 0; padding: 0 44px 0 16px; background: var(--tile) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236B7075' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 18px; border: 1px solid var(--line); border-radius: 14px; box-shadow: none; outline: none; font: 500 16px/1 var(--f-ui); color: var(--ink); cursor: pointer; }
.rd #arkan-calc input.arkan-sel { padding: 0 16px; background-image: none; cursor: text; -moz-appearance: textfield; }
.rd #arkan-calc input.arkan-sel::-webkit-outer-spin-button, .rd #arkan-calc input.arkan-sel::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.rd #arkan-calc .arkan-sel::placeholder { color: var(--mute); opacity: .6; }
.rd #arkan-calc .arkan-sel:focus { border-color: var(--accent); }

.rd #arkan-calc .rda-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rd #arkan-calc .rda-btn, .rd #arkan-calc .arkan-chip { display: inline-flex; align-items: center; justify-content: center; gap: 6px; margin: 0; width: auto; height: auto; border: 1px solid transparent; border-radius: 999px; box-shadow: none; text-decoration: none; white-space: nowrap; cursor: pointer; }
.rd #arkan-calc .rda-btn--ink { padding: 13px 28px; background: var(--ink); color: #fff; font: 500 15px/1 var(--f-ui); }
.rd #arkan-calc .rda-btn--pill { padding: 14px 24px; background: var(--pill); color: var(--ink); font: 400 13px/1 var(--f-ui); }
.rd #arkan-calc .arkan-chip { padding: 13px 16px; background: transparent; border-color: var(--line); color: var(--mute); font: 400 13px/1 var(--f-ui); }
.rd #arkan-calc .rda-btn:hover, .rd #arkan-calc .arkan-chip:hover, .rd #arkan-calc .rda-copy:hover { opacity: .85; }
.rd #arkan-calc .arkan-chip:hover { color: var(--ink); }

.rd #arkan-calc .arkan-error { margin: 0; padding: 12px 16px; border-radius: 12px; background: var(--bad-soft); color: var(--bad); font: 500 14px/1.45 var(--f-ui); }

/* ===== результат ===== */
.rd #arkan-calc .rda-result { display: flex; flex-direction: column; gap: 28px; padding: 28px; border-radius: 20px; background: var(--tile); }
.rd #arkan-calc .rda-result:has(> #arkan-output[style*="none"]) { display: none; }
.rd #arkan-calc #dt-transfer-wrap:empty { display: none; }
.rd #arkan-calc #arkan-output > * + * { margin-top: 28px; }
.rd #arkan-calc .rda-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rd #arkan-calc .rda-copy { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 8px 14px; border: 0; border-radius: 999px; background: var(--pill); color: var(--ink); font: 500 13px/1.2 var(--f-ui); cursor: pointer; }
.rd #arkan-calc .rda-block { display: flex; flex-direction: column; gap: 12px; }
.rd #arkan-calc .rda-h3 { margin: 0; font: 600 20px/1.25 var(--f-ui); letter-spacing: -.2px; color: var(--ink); }

.rd #arkan-calc .arkan-pop { animation: arkanPop .4s ease; }
@keyframes arkanPop { 0% { opacity: 0; transform: translateY(8px) scale(.99); } 100% { opacity: 1; transform: none; } }

/* карта аркана */
.rd #arkan-calc .arkan-card { display: flex; align-items: flex-start; gap: 24px; padding: 24px; border-radius: 16px; background: var(--card); }
.rd #arkan-calc .arkan-card__visual { flex: none; width: 124px; }
.rd #arkan-calc .arkan-card__img { display: block; width: 124px; height: auto; border: 1px solid var(--accent); border-radius: 12px; }
.rd #arkan-calc .arkan-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.rd #arkan-calc .arkan-card__eyebrow { font: 400 11px/1.4 var(--f-mono); letter-spacing: 1px; text-transform: uppercase; color: var(--mute); }
.rd #arkan-calc .arkan-card__title { margin: 0; font: 700 24px/1.2 var(--f-ui); letter-spacing: -.4px; color: var(--ink); }
.rd #arkan-calc .arkan-card__num, .rd #arkan-calc .arkan-card__alt { font: inherit; opacity: 1; }
.rd #arkan-calc .arkan-card__key { font: 500 15px/1.45 var(--f-ui); color: var(--accent); }
.rd #arkan-calc .arkan-card__traits { margin: 4px 0 0; padding: 0; }
.rd #arkan-calc .arkan-card__traits dt { margin: 8px 0 0; padding: 14px 14px 3px; border-radius: 12px 12px 0 0; background: var(--tile); font: 400 11px/1.3 var(--f-mono); letter-spacing: 1px; text-transform: uppercase; color: var(--ink); }
.rd #arkan-calc .arkan-card__traits dt:first-of-type { margin-top: 0; color: var(--accent); }
.rd #arkan-calc .arkan-card__traits dt:nth-of-type(2) { color: var(--mute); }
.rd #arkan-calc .arkan-card__traits dd { margin: 0; padding: 3px 14px 14px; border-radius: 0 0 12px 12px; background: var(--tile); font: 400 14px/1.5 var(--f-ui); color: var(--ink); }

/* Аркан Дня и число жизненного пути */
.rd #arkan-calc .arkan-minis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rd #arkan-calc .arkan-mini { display: flex; align-items: center; gap: 18px; min-width: 0; padding: 20px; border-radius: 16px; background: var(--card); }
.rd #arkan-calc .arkan-mini__img { display: block; flex: none; width: 78px; height: auto; border: 1px solid var(--accent); border-radius: 10px; }
.rd #arkan-calc .arkan-soul-badge { display: flex; flex: none; align-items: center; justify-content: center; width: 78px; height: 78px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); font: 700 32px/1 var(--f-ui); letter-spacing: -.5px; }
.rd #arkan-calc .arkan-mini__txt { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.rd #arkan-calc .arkan-mini__lbl { font: 400 11px/1.4 var(--f-mono); letter-spacing: 1px; text-transform: uppercase; color: var(--mute); }
.rd #arkan-calc .arkan-mini__name { font: 700 20px/1.2 var(--f-ui); letter-spacing: -.3px; color: var(--ink); }
.rd #arkan-calc .arkan-mini__desc { font: 400 14px/1.5 var(--f-ui); color: var(--accent); }
.rd #arkan-calc .arkan-mini--soul .arkan-mini__desc { color: var(--mute); }

/* метод расчёта */
.rd #arkan-calc .arkan-rule { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.rd #arkan-calc .arkan-rule__lbl { font: 400 14px/1.4 var(--f-ui); color: var(--mute); }
.rd #arkan-calc .arkan-segs { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--pill); }
.rd #arkan-calc .arkan-seg { position: relative; margin: 0; cursor: pointer; }
.rd #arkan-calc .arkan-seg input { position: absolute; opacity: 0; width: 0; height: 0; margin: 0; }
.rd #arkan-calc .arkan-seg span { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 16px; border-radius: 999px; font: 400 13px/1.2 var(--f-ui); color: var(--mute); white-space: nowrap; }
.rd #arkan-calc .arkan-seg input:checked + span { background: var(--card); color: var(--ink); font-weight: 500; }
.rd #arkan-calc .arkan-seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }
.rd #arkan-calc .arkan-seg i { padding: 3px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font: 600 10px/1 var(--f-ui); font-style: normal; letter-spacing: .5px; text-transform: uppercase; }

.rd #arkan-calc .arkan-steps { display: flex; flex-direction: column; padding: 20px; border-radius: 16px; background: var(--card); }
.rd #arkan-calc .arkan-steps .pr-step { margin: 0; padding: 12px 0; border: 0; border-top: 1px solid var(--line); background: none; font: 400 15px/1.5 var(--f-ui); color: var(--ink); }
.rd #arkan-calc .arkan-steps .pr-step:first-child { padding-top: 0; border-top: 0; }
.rd #arkan-calc .arkan-steps .pr-step:last-child { padding-bottom: 0; }
.rd #arkan-calc .arkan-steps .pr-step b, .rd #arkan-calc .arkan-steps .pr-step strong { font-weight: 600; }
.rd #arkan-calc .arkan-steps .arkan-fork { margin: 4px 0; padding: 12px 14px; border-top: 0; border-radius: 12px; background: var(--tile); }
.rd #arkan-calc .arkan-steps .arkan-fork + .pr-step { border-top: 0; }

/* «Эта же дата в других расчётах» */
.rd #arkan-calc .dt-transfer { margin: 0; text-align: left; }
.rd #arkan-calc .dt-transfer__ttl { margin: 0 0 12px; opacity: 1; font: 400 11px/1.4 var(--f-mono); letter-spacing: 1px; text-transform: uppercase; color: var(--mute); }
.rd #arkan-calc .dt-transfer__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rd #arkan-calc .dt-transfer__link { display: grid; grid-template-columns: minmax(0, 1fr) 16px; align-items: center; gap: 4px 8px; min-width: 0; padding: 14px 16px; border: 0; border-radius: 14px; background: var(--card); color: var(--ink); text-decoration: none; transition: box-shadow .15s; }
.rd #arkan-calc .dt-transfer__link:hover { box-shadow: inset 0 0 0 1px var(--accent-mid); }
.rd #arkan-calc .dt-transfer__link::after { content: ""; grid-column: 2; grid-row: 1 / 3; width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234F5BD5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10v10'/%3E%3Cpath d='M7 17 17 7'/%3E%3C/svg%3E") no-repeat center / 16px; }
.rd #arkan-calc .dt-transfer__link span { grid-column: 1; font: 600 15px/1.3 var(--f-ui); color: var(--ink); }
.rd #arkan-calc .dt-transfer__link i { grid-column: 1; opacity: 1; font: 400 13px/1.35 var(--f-ui); font-style: normal; color: var(--mute); }

/* тост копирования */
.rd #arkan-toast { position: fixed; left: 50%; bottom: 28px; z-index: 9999; padding: 10px 18px; border-radius: 12px; background: var(--ink); color: #fff; font: 500 13px/1.2 var(--f-ui); opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(10px); transition: opacity .25s, transform .25s; }
.rd #arkan-toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== статья и боковая колонка ===== */
.rd .rd-article__body .table-scroll { overflow-x: auto; }
.rd .rd-article__body .arkan-table--cards td:first-child { white-space: nowrap; }

.rd .rda-src h2.rd-label { margin: 0; padding: 0; border: 0; font: 400 11px/1.4 var(--f-mono); letter-spacing: 1px; text-transform: uppercase; color: var(--mute); scroll-margin-top: 16px; }
.rd .rda-src__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.rd .rda-src__list li { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rd .rda-src__list li:last-child { padding-bottom: 0; border-bottom: 0; }
.rd .rda-src__list li::before { display: none; }
.rd .rda-src__list b { font: 600 14px/1.35 var(--f-ui); color: var(--ink); }
.rd .rda-src__list span { font: 400 13px/1.45 var(--f-ui); color: var(--mute); }
.rd .rda-src__list a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent-mid); text-underline-offset: 2px; }
.rd .rd-article__aside .ymyl-disclaimer { margin: 0; padding: 24px; border-radius: 22px; }
.rd .rd-article__aside .ymyl-disclaimer strong { display: block; margin-bottom: 10px; font: 400 11px/1.4 var(--f-mono); letter-spacing: 1px; text-transform: uppercase; color: var(--ink); }

/* ===== телефон ===== */
@media (max-width: 639px) {
    .rd #arkan-calc .rda-form { gap: 22px; }
    .rd #arkan-calc .arkan-fields { grid-template-columns: 84px minmax(0, 1fr) 96px; gap: 10px; }
    .rd #arkan-calc .arkan-sel { padding: 0 32px 0 12px; background-position: right 10px center; font-size: 15px; }
    .rd #arkan-calc input.arkan-sel { padding: 0 12px; }
    .rd #arkan-calc .rda-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
    .rd #arkan-calc .rda-btn--ink { padding-left: 16px; padding-right: 16px; }
    .rd #arkan-calc .arkan-chip { grid-column: 1 / -1; }

    .rd #arkan-calc .rda-result { gap: 22px; padding: 16px; }
    .rd #arkan-calc #arkan-output > * + * { margin-top: 22px; }
    .rd #arkan-calc .rda-h3 { font-size: 18px; }

    .rd #arkan-calc .arkan-card { display: grid; grid-template-columns: 78px minmax(0, 1fr); grid-template-rows: auto auto auto 1fr auto; gap: 6px 16px; padding: 16px; }
    .rd #arkan-calc .arkan-card__visual { grid-column: 1; grid-row: 1 / 5; width: 78px; }
    .rd #arkan-calc .arkan-card__img { width: 78px; border-radius: 10px; }
    .rd #arkan-calc .arkan-card__body { display: contents; }
    .rd #arkan-calc .arkan-card__eyebrow, .rd #arkan-calc .arkan-card__title, .rd #arkan-calc .arkan-card__key { grid-column: 2; }
    .rd #arkan-calc .arkan-card__title { font-size: 20px; letter-spacing: -.3px; }
    .rd #arkan-calc .arkan-card__key { font-size: 14px; }
    .rd #arkan-calc .arkan-card__traits { grid-column: 1 / -1; grid-row: 5; margin-top: 10px; }

    .rd #arkan-calc .arkan-minis { grid-template-columns: minmax(0, 1fr); }
    .rd #arkan-calc .arkan-mini { gap: 16px; padding: 16px; }
    .rd #arkan-calc .arkan-mini__name { font-size: 18px; }

    .rd #arkan-calc .arkan-rule { flex-direction: column; align-items: stretch; gap: 10px; }
    .rd #arkan-calc .arkan-segs { display: flex; }
    .rd #arkan-calc .arkan-seg { flex: 1; }
    .rd #arkan-calc .arkan-seg span { padding: 8px 10px; }
    .rd #arkan-calc .arkan-steps { padding: 16px; }
    .rd #arkan-calc .dt-transfer__row { grid-template-columns: minmax(0, 1fr); }
    .rd .rd-article__aside .ymyl-disclaimer { padding: 20px; border-radius: 20px; }
}
