/* 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; }

/* === EXPAND BUTTONS === */
.d2-xbtn {
  width: 100%;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F5F5F7;
  border: none;
  cursor: pointer;
  border-top: .5px solid #E5E5EA;
}
.d2-xbtn-lbl {
  font-size: 12px;
  color: #636366;
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 500;
}
.d2-xbtn-badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  background: #E5E5EA;
  color: #636366;
}

/* === 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; }

/* === PRO BADGE (inline in tier-3 header) === */
.d2-sec .pro-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 8px;
  background: #534AB7;
  color: #fff;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: .3px;
}
