/* Daniel 2 final visual baseline — BPG v9.0.15 */

.d2-hero-note {
  max-width: 760px;
}

.d2-clean-visual-card,
.d2-kingdom-card,
.d2-note-card,
.d2-verse-card,
.d2-mini-link {
  background: var(--color-white);
  border: 1px solid var(--color-border);
}

.d2-clean-visual-card {
  padding: clamp(1rem, 2vw, 1.35rem);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 40px rgba(17, 17, 17, 0.06);
}

.d2-clean-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(460px, 1.1fr);
  gap: clamp(1rem, 1.8vw, 1.25rem);
  align-items: stretch;
  grid-auto-rows: 1fr;
}

.d2-kingdom-card-stack {
  display: grid;
  gap: 0.85rem;
}

.d2-kingdom-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  min-height: 116px;
  padding: clamp(1rem, 1.7vw, 1.25rem);
  border-radius: var(--radius-md);
}

.d2-kingdom-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-top: 0.12rem;
  border-radius: 999px;
  background: var(--color-black);
  color: var(--color-white);
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1;
}

.d2-order {
  margin: 0 0 0.3rem;
  color: var(--color-muted);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  line-height: 1.15;
  text-transform: uppercase;
}

.d2-kingdom-card h3 {
  margin: 0 0 0.25rem;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.d2-kingdom-card p {
  margin: 0;
  color: #4e4e56;
  line-height: 1.42;
}

.d2-kingdom-card .d2-dates {
  margin-bottom: 0.45rem;
  color: var(--color-muted);
  font-weight: 650;
}

.d2-reference {
  margin-top: 0.55rem !important;
  color: var(--color-text) !important;
  font-weight: 650;
}

.d2-accent-gold { box-shadow: inset 5px 0 0 #d6b15f; }
.d2-accent-silver { box-shadow: inset 5px 0 0 #c5cad4; }
.d2-accent-bronze { box-shadow: inset 5px 0 0 #b98053; }
.d2-accent-iron { box-shadow: inset 5px 0 0 #7f858f; }
.d2-accent-clay { box-shadow: inset 5px 0 0 #b99f8d; }
.d2-accent-stone { box-shadow: inset 5px 0 0 var(--color-black); }

.d2-statue-art {
  display: grid;
  align-content: stretch;
  justify-items: center;
  align-items: stretch;
  margin: 0;
  min-height: 100%;
  height: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

.d2-statue-art img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  margin: 0 auto;
  filter: drop-shadow(0 22px 22px rgba(0, 0, 0, 0.12));
}


.d2-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

.d2-note-card,
.d2-verse-card {
  padding: clamp(1.1rem, 2vw, 1.35rem);
  border-radius: var(--radius-lg);
}

.d2-note-card h2,
.d2-verse-card h2 {
  margin-bottom: 0.7rem;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.05;
}

.d2-note-card p,
.d2-verse-card p,
.d2-verse-card blockquote {
  color: #4e4e56;
}

.d2-verse-card blockquote {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.55;
}

.d2-study-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.d2-mini-link {
  display: block;
  padding: 1.15rem;
  border-radius: var(--radius-md);
}

.d2-mini-link h3 {
  margin-bottom: 0.4rem;
  font-size: 1.25rem;
}

.d2-mini-link p {
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: 0.96rem;
}

@media (max-width: 1040px) {
  .d2-clean-layout {
    grid-template-columns: 1fr;
  }

  .d2-statue-art {
    order: -1;
  }

  .d2-statue-art img {
    width: min(100%, 380px);
  }

  .d2-summary-grid,
  .d2-study-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .d2-clean-visual-card {
    padding: 0.75rem;
    border-radius: 24px;
  }

  .d2-statue-art {
    border-radius: 20px;
  }

  .d2-statue-art img {
    width: min(100%, 310px);
  }

  .d2-kingdom-card {
    min-height: 0;
    border-radius: 18px;
  }

  .d2-note-card,
  .d2-verse-card,
  .d2-mini-link {
    border-radius: 22px;
  }
}




/* BPG v9.0.14 — transparent statue/stone asset */
@media (min-width: 1041px) {
  .d2-clean-layout {
    grid-template-columns: minmax(0, 0.96fr) minmax(460px, 1.1fr);
    align-items: stretch;
  }

  .d2-statue-art {
    min-height: 100%;
  }

  .d2-statue-art img {
    height: 115%;
    max-height: 1280px;
  }
}

@media (max-width: 1040px) {
  .d2-statue-art {
    height: auto;
    padding: 0.5rem 0;
  }

  .d2-statue-art img {
    width: min(100%, 380px);
    height: auto;
    max-height: none;
  }
}

@media (max-width: 680px) {
  .d2-statue-art img {
    width: min(100%, 310px);
    height: auto;
    max-height: none;
  }
}

/* Daniel 2 statue fine-position adjustment */
@media (min-width: 1041px) {
  .d2-statue-art img {
    transform: translateY(-6px);
  }
}


/* BPG v9.3.0 — Daniel 2 HTML/CSS markers added to approved v9.0.15 statue baseline */
.d2-statue-art {
  position: relative;
}

.d2-statue-marker-rail {
  position: absolute;
  z-index: 3;
  top: 5.8%;
  bottom: 4.2%;
  left: clamp(0.35rem, 1.3vw, 1rem);
  width: clamp(3.4rem, 5vw, 4.8rem);
  display: grid;
  grid-template-rows: repeat(6, 1fr);
  align-items: center;
  pointer-events: none;
}

.d2-statue-marker {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.d2-statue-marker-dot {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1;
  box-shadow: 0 0 0 6px rgba(255,255,255,.92), 0 8px 18px rgba(17,17,17,.12);
}

.d2-statue-marker-line {
  display: block;
  flex: 1 1 auto;
  min-width: 1.75rem;
  height: 2px;
  margin-left: 0.48rem;
  background: linear-gradient(90deg, rgba(29,29,31,.42), rgba(29,29,31,.12));
}

.d2-statue-marker-line::after {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  margin-left: auto;
  margin-top: -2px;
  border-radius: 999px;
  background: rgba(29,29,31,.38);
}

/* Fine tuning controls for live testing:
   - top/bottom change marker vertical spread
   - left changes rail horizontal position
   - line length follows rail width
*/
@media (max-width: 1040px) {
  .d2-statue-marker-rail {
    top: 6%;
    bottom: 5%;
    left: calc(50% - 190px);
    width: 4rem;
  }
}

@media (max-width: 680px) {
  .d2-statue-marker-rail {
    top: 6%;
    bottom: 5%;
    left: calc(50% - 155px);
    width: 3.35rem;
  }

  .d2-statue-marker-dot {
    width: 1.72rem;
    height: 1.72rem;
    font-size: 0.78rem;
  }

  .d2-statue-marker-line {
    min-width: 1.15rem;
    margin-left: 0.32rem;
  }
}


/* =========================================================
   BPG v9.3.1 — Daniel 2 Marker Overlay Handoff
   Keep the approved v9.0.15 statue visual baseline.
   This block only controls HTML/CSS markers and lines.
   ========================================================= */

.d2-statue-art {
  position: relative;
  overflow: visible;
}

.d2-statue-marker-rail {
  position: absolute;
  z-index: 5;
  top: 6%;
  bottom: 5%;
  left: clamp(0.35rem, 1.3vw, 1rem);
  width: clamp(3.4rem, 5vw, 4.8rem);
  display: grid;
  grid-template-rows: repeat(6, 1fr);
  align-items: center;
  pointer-events: none;
}

.d2-statue-marker {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.d2-statue-marker-dot {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1;
  box-shadow:
    0 0 0 6px rgba(255, 255, 255, 0.92),
    0 8px 18px rgba(17, 17, 17, 0.12);
}

.d2-statue-marker-line {
  display: block;
  flex: 1 1 auto;
  min-width: 1.75rem;
  height: 2px;
  margin-left: 0.48rem;
  background: linear-gradient(90deg, rgba(29, 29, 31, 0.42), rgba(29, 29, 31, 0.12));
}

.d2-statue-marker-line::after {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  margin-left: auto;
  margin-top: -2px;
  border-radius: 999px;
  background: rgba(29, 29, 31, 0.38);
}

@media (max-width: 1040px) {
  .d2-statue-marker-rail {
    top: 6%;
    bottom: 5%;
    left: calc(50% - 190px);
    width: 4rem;
  }
}

@media (max-width: 680px) {
  .d2-statue-marker-rail {
    top: 6%;
    bottom: 5%;
    left: calc(50% - 155px);
    width: 3.35rem;
  }

  .d2-statue-marker-dot {
    width: 1.72rem;
    height: 1.72rem;
    font-size: 0.78rem;
  }

  .d2-statue-marker-line {
    min-width: 1.15rem;
    margin-left: 0.32rem;
  }

  .d2-statue-marker-line::after {
    width: 5px;
    height: 5px;
    margin-top: -1.5px;
  }
}

/* =========================================================
   BPG v9.3.5 REVIEW — Daniel 2 iPad card vertical centering
   Scope: tablet-width Daniel 2 kingdom cards only.
   Purpose: center the number/text block vertically inside the HTML cards on iPad
   without changing the approved desktop or iPhone statue/card behavior.
   ========================================================= */

@media (min-width: 681px) and (max-width: 1040px) {
  .d2-kingdom-card {
    align-items: center;
  }

  .d2-kingdom-number {
    margin-top: 0;
  }
}
