/* ===============================
   DETAILS BEHAVIOR
   =============================== */
details {
  display: block;
  overflow: visible;
}

/* Indent nested <details> */
main details details {
  margin-left: 1.25rem;
  padding-left: 0.75rem;
  border-left: 2px solid rgba(93,101,145,0.35);
}

/* Make images look like the iframe plots */
.lens-content img{
  display:block;
  margin: 0.6rem auto 0.2rem auto;
  width: 100%;
  max-width: 1100px;
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.10);
  box-shadow: 0 12px 30px rgba(0,0,0,.06);
}

/* Give plot blocks a consistent spacing */
.lens-content p{
  margin-top: 10px;
  line-height: 1.55;
  color: rgba(0,0,0,.82);
}

/* Optional: keep plot area feeling consistent */
.lens-content{
  padding-top: 6px;
}

/* ===============================
   LAYOUT SECTIONS
   =============================== */
.outer-details {
  background: #f8f9fc;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

.mid-details {
  margin-top: 1rem;
  background: #ffffff;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
}

/* ===============================
   EFFECT BLOCKS
   =============================== */
.effect-block {
  border-left: 4px solid #5D6591;
  padding-left: 16px;
  margin: 12px 0;
}

.effect-block details {
  background: #f6f7fb;
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  margin: 0.6rem 0;
  transition: background 0.2s ease, transform 0.15s ease;
}

.effect-block details:hover {
  background: #eef1fa;
  transform: translateX(2px);
}

/* ===============================
   SUMMARY STYLING
   =============================== */
summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 0.5rem;
  transition: transform 0.2s ease;
}

details[open] > summary::before {
  transform: rotate(90deg);
}

/* ===============================
   IMAGE DISPLAY
   =============================== */
.image-box {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  text-align: center;
}

.image-box img {
  max-width: 700px;     /* main size control */
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 6px;
}

.effect-description {
  font-size: 0.95rem;
  color: #444;
  margin-top: 0.75rem;
  line-height: 1.5;
}

