/* v1.8: symmetrical rounded top/bottom with external shadow; transparent background. */
.sgt-three-panel {
  --sgt-center-width: 520px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, var(--sgt-center-width)) minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  width: 100vw;
  max-width: none;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 0;
  background: transparent;
}
.sgt-three-panel, .sgt-three-panel *, .sgt-three-panel *::before, .sgt-three-panel *::after { box-sizing: border-box; }
.sgt-three-panel__side {
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 28px clamp(12px, 2vw, 28px);
  background: transparent;
}
.sgt-three-panel__center {
  position: relative;
  min-width: 0;
  margin-top: 32px;
  margin-bottom: 32px;
  padding: 48px 20px 48px;
  border-radius: 76px;
  /* No white fill: do not wash out the existing site background. */
  background: transparent;
  /* The outline follows the rounded top corners. The shadow is OUTSIDE the entire shape,
     including both curves and the top edge. Never shade the inside or cover the puzzle pattern. */
  border-top: 1px solid rgba(65, 65, 65, .15);
  border-left: 1px solid rgba(65, 65, 65, .11);
  border-right: 1px solid rgba(65, 65, 65, .11);
  border-bottom: 1px solid rgba(65, 65, 65, .15);
  box-shadow: 0 0 18px 1px rgba(45, 45, 45, .095);
}
.sgt-three-panel__side > :first-child, .sgt-three-panel__center > :first-child { margin-top: 0; }
.sgt-three-panel__side > :last-child, .sgt-three-panel__center > :last-child { margin-bottom: 0; }
@media (max-width: 767px) {
  .sgt-three-panel { display: block; width: 100%; left: auto; transform: none; }
  .sgt-three-panel__side { display: none !important; }
  .sgt-three-panel__center {
    width: 100%; margin-top: 0; margin-bottom: 0; padding: 16px 12px;
    border: 0; border-radius: 0; background: transparent; box-shadow: none;
  }
}

/* v1.11: the document scrolls normally; side columns stick only within the
   three-panel section, then naturally scroll away before the footer. */
@media (min-width: 768px) {
  .sgt-three-panel.sgt-three-panel--scroll {
    height: auto;
    min-height: 0;
    align-items: start;
    overflow: visible;
  }
  .sgt-three-panel--scroll .sgt-three-panel__center {
    height: auto;
    overflow: visible;
    overscroll-behavior: auto;
    margin-top: 32px;
    margin-bottom: 32px;
  }
  .sgt-three-panel--scroll .sgt-three-panel__side {
    position: sticky;
    top: 16px;
    height: auto;
    max-height: none;
    overflow: visible;
    align-self: start;
  }
}
