/* person2.css — d2-prefixed styles for _d2render() in mobile.js */
/* All selectors use d2- prefix to avoid conflicts with mobile.css    */

/* === BASE === */
.d2-body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #F5F5F7;
  padding-bottom: 20px;
}

/* === SECTIONS === */
.d2-sec {
  border-bottom: .5px solid #E5E5EA;
  padding: 14px 16px;
}
.d2-sec:last-child { border-bottom: none; }
.d2-sec-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: #8E8E93;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* === ENERGIE DNE === */
.d2-en-row { display: flex; align-items: center; gap: 14px; }
.d2-donut {
  position: relative;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}
.d2-donut svg { width: 64px; height: 64px; }
.d2-donut-num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  color: #1C1C1E;
}
.d2-en-title {
  font-size: 15px;
  font-weight: 600;
  color: #1C1C1E;
  margin-bottom: 3px;
}
.d2-en-sub { font-size: 11px; color: #8E8E93; margin-bottom: 6px; }
.d2-en-tip {
  font-size: 11px;
  color: #534AB7;
  background: #EEEDFE;
  padding: 4px 10px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* === OSOBNOSTNÍ OBRAZ === */
.d2-ob-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.d2-ob-cell {
  background: #F5F5F7;
  border-radius: 10px;
  padding: 10px 12px;
}
.d2-ob-ico { font-size: 20px; margin-bottom: 4px; }
.d2-ob-lbl {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: #8E8E93;
  margin-bottom: 3px;
}
.d2-ob-val { font-size: 12px; font-weight: 600; color: #1C1C1E; }

.d2-arch-block {
  background: #F5F5F7;
  border-radius: 10px;
  padding: 11px 13px;
  margin-bottom: 10px;
  border-left: 3px solid #534AB7;
}
.d2-arch-title {
  font-size: 15px;
  font-weight: 700;
  color: #1C1C1E;
  margin-bottom: 3px;
}
.d2-arch-desc {
  font-size: 11px;
  color: #636366;
  line-height: 1.5;
  margin-bottom: 8px;
}
.d2-badge-pos {
  font-size: 10px;
  padding: 3px 9px;
  border-radius: 10px;
  background: #EAF3DE;
  color: #27500A;
  border: .5px solid #C0DD97;
  display: inline-block;
  margin: 2px 3px 2px 0;
}
.d2-badge-neg {
  font-size: 10px;
  padding: 3px 9px;
  border-radius: 10px;
  background: #FAEEDA;
  color: #633806;
  border: .5px solid #FAC775;
  display: inline-block;
  margin: 2px 3px 2px 0;
}

/* === JAK ČÍST === */
.d2-jak { font-size: 12px; color: #636366; line-height: 1.7; }

/* T2.2 KROK 1: `.d2-xbtn*` + `.pro-badge` styles were the pre-tier
 * "reveal more" expand buttons + PRO stub badge. Removed together with
 * their JS renders in _d2render. */

/* === ZÁPAD/VÝCHOD BUTTONS === */
.d2-ze-btn {
  width: 100%;
  background: #F5F5F7;
  border: .5px solid #E5E5EA;
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.d2-ze-left { display: flex; align-items: center; gap: 12px; }
.d2-ze-ico { font-size: 28px; flex-shrink: 0; }
.d2-ze-title {
  font-size: 12px;
  font-weight: 600;
  color: #1C1C1E;
  margin-bottom: 2px;
}
.d2-ze-sub { font-size: 10px; color: #8E8E93; }
.d2-ze-detail {
  display: none;
  border: .5px solid #E5E5EA;
  border-top: none;
  border-radius: 0 0 12px 12px;
  padding: 14px;
  margin-top: -11px;
  margin-bottom: 10px;
  background: #fff;
}
.d2-ze-detail.d2-ze-open { display: block; }

/* Západ grid (zodiac cards) */
.d2-z-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.d2-z-card {
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
}
.d2-z-ico { font-size: 28px; margin-bottom: 4px; }
.d2-z-lbl {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-bottom: 3px;
}
.d2-z-val { font-size: 12px; font-weight: 600; }
.d2-z-desc { font-size: 11px; color: #636366; line-height: 1.6; margin-bottom: 10px; }

/* Východ grid (van animals) */
.d2-van-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}
.d2-van-card {
  border-radius: 10px;
  padding: 10px 6px;
  text-align: center;
}
.d2-van-ico { font-size: 26px; margin-bottom: 4px; }
.d2-van-role {
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-bottom: 3px;
}
.d2-van-name { font-size: 11px; font-weight: 600; }

/* === PEČETĚ === */
.d2-seal-wrap { margin-top: 4px; }
.d2-seal-item {
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: .5px solid #E5E5EA;
  cursor: pointer;
}
.d2-seal-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.d2-seal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.d2-seal-name {
  font-size: 12px;
  font-weight: 600;
  color: #534AB7;
  display: flex;
  align-items: center;
  gap: 6px;
}
.d2-seal-desc {
  display: none;
  font-size: 11px;
  color: #636366;
  line-height: 1.6;
  margin-top: 7px;
  padding: 8px 10px;
  background: #EEEDFE;
  border-radius: 8px;
}
.d2-seal-desc.d2-seal-open { display: block; }

/* === NUMEROLOGIE === */
.d2-num-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}
.d2-num-box {
  cursor: pointer;
  border: .5px solid;
  border-radius: 10px;
  padding: 10px 6px;
  text-align: center;
}
.d2-num-lp  { background: #E6F1FB; border-color: #B5D4F4; }
.d2-num-pin { background: #FAEEDA; border-color: #FAC775; }
.d2-num-rok { background: #EEEDFE; border-color: #AFA9EC; }

.d2-num-lp  .d2-num-n { color: #0C447C; }
.d2-num-lp  .d2-num-l { color: #185FA5; }
.d2-num-pin .d2-num-n { color: #633806; }
.d2-num-pin .d2-num-l { color: #854F0B; }
.d2-num-rok .d2-num-n { color: #26215C; }
.d2-num-rok .d2-num-l { color: #534AB7; }

.d2-num-lp.d2-num-active  { box-shadow: 0 0 0 2.5px #378ADD; }
.d2-num-pin.d2-num-active { box-shadow: 0 0 0 2.5px #EF9F27; }
.d2-num-rok.d2-num-active { box-shadow: 0 0 0 2.5px #7F77DD; }

.d2-num-n { font-size: 22px; font-weight: 600; line-height: 1; }
.d2-num-l { font-size: 9px; margin-top: 3px; line-height: 1.3; }

.d2-num-det {
  display: none;
  margin-top: 8px;
  border-radius: 10px;
  padding: 12px 14px;
}
.d2-num-det.d2-num-open { display: block; }

.d2-num-det-lp  { background: #E6F1FB; border: .5px solid #B5D4F4; }
.d2-num-det-pin { background: #FAEEDA; border: .5px solid #FAC775; }
.d2-num-det-rok { background: #EEEDFE; border: .5px solid #AFA9EC; }

.d2-num-det-lp  .d2-ndt { color: #0C447C; }
.d2-num-det-lp  .d2-ndd { color: #185FA5; }
.d2-num-det-pin .d2-ndt { color: #633806; }
.d2-num-det-pin .d2-ndd { color: #854F0B; }
.d2-num-det-rok .d2-ndt { color: #26215C; }
.d2-num-det-rok .d2-ndd { color: #534AB7; }

.d2-ndt { font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.d2-ndd { font-size: 11px; line-height: 1.6; margin-bottom: 8px; }

/* === OSOBNÍ MĚSÍC === */
.d2-mes-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 10px 12px;
  background: #EEEDFE;
  border-radius: 10px;
  border: .5px solid #AFA9EC;
  margin-top: 10px;
}
.d2-mes-left { display: flex; align-items: center; gap: 10px; }
.d2-mes-num { font-size: 24px; font-weight: 600; color: #26215C; }
.d2-mes-name { font-size: 12px; font-weight: 600; color: #26215C; }
.d2-mes-sub { font-size: 10px; color: #534AB7; }
.d2-mes-det {
  display: none;
  margin-top: 8px;
  padding: 10px 12px;
  background: #EEEDFE;
  border-radius: 10px;
  border: .5px solid #AFA9EC;
}
.d2-mes-det.d2-mes-open { display: block; }
.d2-mes-tag { font-size: 10px; font-weight: 600; margin-bottom: 3px; }
.d2-mes-tag-g { color: #27500A; }
.d2-mes-tag-r { color: #8B1A1A; }
.d2-mes-val { font-size: 10px; color: #534AB7; line-height: 1.5; margin-bottom: 6px; }

/* === KW BADGES === */
.d2-kw {
  font-size: 10px;
  padding: 3px 9px;
  border-radius: 10px;
  display: inline-block;
  margin: 2px 3px 2px 0;
}
.d2-kwb { background: #E6F1FB; color: #0C447C; border: .5px solid #B5D4F4; }
.d2-kwa { background: #FAEEDA; color: #633806; border: .5px solid #FAC775; }
.d2-kwc { background: #FAECE7; color: #712B13; border: .5px solid #F5C4B3; }
.d2-kwp { background: #EEEDFE; color: #26215C; border: .5px solid #AFA9EC; }

/* T2.2 KROK 1: `.d2-sec .pro-badge` inline PRO chip lived only inside
 * the removed tier-3 stub header. Removed. */

/* ═══════════════════════════════════════════════════════════════════════
 * T2.2 KROK 2 + 4.5 — shared accordion pattern for the #person body.
 * Every collapsible section (astro data, west/east currently on d2-ze-btn)
 * gets a locale-keyed label + a real aria-expanded state. Body is hidden
 * via the `hidden` attribute (semantic) — CSS backup ensures the block
 * doesn't render even if a stylesheet load races with the render.
 * ═══════════════════════════════════════════════════════════════════════ */
.d2-acc-btn {
  width: 100%;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F5F5F7;
  border: .5px solid #E5E5EA;
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
  text-align: left;
  gap: 8px;
}
.d2-acc-btn[aria-expanded="true"] {
  background: #EEEDFE;
  border-color: #C4BCF5;
}
.d2-acc-lbl { font-size: 13px; font-weight: 700; color: #26215C; }
.d2-acc-arrow { font-size: 12px; color: #534AB7; transition: transform .15s ease; }
.d2-acc-btn[aria-expanded="true"] .d2-acc-arrow { transform: rotate(180deg); }
.d2-acc-body[hidden] { display: none !important; }
.d2-acc-body {
  padding: 10px 14px 14px;
  background: #FAFAFC;
  border: .5px solid #E5E5EA;
  border-top: none;
  border-radius: 0 0 12px 12px;
  margin-top: -8px;
}

/* T2.2 KROK 2 — "⚙ Astronomická data & zdroje" section body. */
.d2-astro-sec { margin-top: 14px; }
.d2-astro-group-title {
  font-size: 10px;
  font-weight: 700;
  color: #534AB7;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 10px 0 4px;
}
.d2-astro-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 0;
  font-size: 12px;
  border-bottom: .5px solid rgba(91,79,199,.10);
}
.d2-astro-row:last-child { border-bottom: none; }
.d2-astro-k { color: #636366; }
.d2-astro-v { color: #1A1A2E; font-weight: 600; }
.d2-astro-elrow { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.d2-astro-elpill {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #EEEDFE;
  color: #26215C;
  font-weight: 600;
}
.d2-astro-source {
  margin-top: 10px;
  font-size: 10px;
  color: #8E8E93;
  font-style: italic;
}
.d2-astro-empty { color: #8E8E93; font-size: 12px; padding: 4px 0; }

/* T2.2 KROK 3 — "Otevřít velký profil" bridge card. Purple gradient with
 * a subtle radial glow. Sits at the very end of the profile body. */
.d2-bridge-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 8px;
  padding: 16px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 20% 10%, rgba(255,255,255,.22) 0%, transparent 55%),
    linear-gradient(135deg, #5B4FC7 0%, #7668E2 100%);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(91,79,199,.30);
}
.d2-bridge-card:hover { filter: brightness(1.05); }
.d2-bridge-ico { font-size: 26px; line-height: 1; flex-shrink: 0; }
.d2-bridge-text { flex: 1; min-width: 0; }
.d2-bridge-title { font-weight: 800; font-size: 13px; margin-bottom: 4px; }
.d2-bridge-body  { font-size: 12px; line-height: 1.4; color: rgba(255,255,255,.88); }
.d2-bridge-cta {
  align-self: center;
  flex-shrink: 0;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.28);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

/* T2.2 KROK 4 — anon register CTA card. Amber action palette (dashed
 * border #E8842C per mockup) — signals "action expected" vs. the neutral
 * tier-lock component used for gates elsewhere. */
.person-anon-card {
  margin: 20px 0 8px;
  padding: 18px 16px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, #FFF7EB 0%, #FFEDCF 100%);
  border: 2px dashed #E8842C;
  text-align: center;
}
.person-anon-title {
  font-weight: 800;
  font-size: 14px;
  color: #7A3A08;
  margin-bottom: 8px;
  line-height: 1.35;
}
.person-anon-bullets {
  font-size: 12px;
  color: #7A3A08;
  line-height: 1.45;
  margin-bottom: 8px;
}
.person-anon-perk {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(232,132,44,.18);
  color: #A34E0F;
  margin-bottom: 12px;
}
.person-anon-cta {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  background: #E8842C;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(232,132,44,.32);
}
.person-anon-cta:hover { background: #D2721E; }
.person-anon-trust {
  margin-top: 10px;
  font-size: 10px;
  color: #A34E0F;
  letter-spacing: .02em;
}
