/* Isolated from the full-size invitation in posts. */
.sjgsm-sideapp-slot {
  box-sizing: border-box; width: 100%; min-width: 0; margin: 0; padding: 0;
  container: sjgsm-sideapp-slot / inline-size;
}
.sjgsm-sideapp-slot > .sjgsm-sideapp {
  --side-h: var(--sjgsm-post-card-height, var(--sjgsm-fallback-height, 253.2px));
  box-sizing: border-box; display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  justify-items: center; align-items: center;
  row-gap: clamp(1px, calc((var(--side-h) - 176px) / 10), 5px);
  width: 100%; min-width: 0; height: var(--side-h); min-height: 160px; margin: 0;
  padding: clamp(4px, calc((var(--side-h) - 164px) / 5), 12px) clamp(7px, 5%, 13px);
  border: 1px solid #bf9951; border-radius: 12px;
  background: #52152c linear-gradient(116deg, #431326, #722540 61%, #54182e); color: #fff5de;
  font: 400 14px/1.3 system-ui, sans-serif; text-align: center; text-transform: none; text-shadow: none;
}
.sjgsm-sideapp .sjgsm-sideapp__brand {
  display: flex; justify-content: center; align-items: center; gap: 5px; min-width: 0;
  margin: 0; color: #eac77b; font: 700 10px/1.1 system-ui, sans-serif; letter-spacing: .13em;
}
.sjgsm-sideapp img.sjgsm-sideapp__logo {
  box-sizing: border-box; display: block; width: clamp(12px, calc((var(--side-h) - 160px) / 2), 15px); height: auto; aspect-ratio: 1; max-width: 100%;
  object-fit: contain; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; filter: none; clip-path: none; mask: none; transform: none;
}
.sjgsm-sideapp .sjgsm-sideapp__title {
  display: block; margin: 0; color: #fff5d8; font: normal clamp(18px, calc((var(--side-h) - 160px) / 1.1), 22px)/1.04 Georgia, serif; letter-spacing: -.02em;
}
.sjgsm-sideapp .sjgsm-sideapp__mid {
  width: 100%; height: 100%; min-height: 0; box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  container: sjgsm-sideapp-mid / size;
}
.sjgsm-sideapp img.sjgsm-sideapp__qr {
  display: block; flex: none; box-sizing: border-box; object-fit: contain;
  width: 94px; height: auto; max-width: 100%; max-height: calc(100% - 15px); aspect-ratio: 1;
  margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; image-rendering: auto; filter: none; clip-path: none; mask: none; transform: none;
}
@supports (width: 1cqb) {
  .sjgsm-sideapp img.sjgsm-sideapp__qr {
    width: min(112px, 100cqi, calc(100cqb - 15px)); height: auto;
  }
}
.sjgsm-sideapp .sjgsm-sideapp__note {
  margin: 3px 0 0; color: #f1dfb5; font: 500 10px/12px system-ui, sans-serif;
}
.sjgsm-sideapp .sjgsm-sideapp__summary {
  display: block; margin: 0; max-width: 16ch; color: #f1dfcf; font: 400 14px/1.4 Georgia, serif;
}
:is(#sidebar .sjgsm-sideapp, .sjgsm-sideapp) a.sjgsm-sideapp__open {
  display: flex; box-sizing: border-box; width: 100%; min-height: 44px;
  align-items: center; justify-content: center; gap: .45em; margin: 0; padding: 5px 4px;
  border: 1px solid #efdbab; border-radius: 6px; background: #efd089; color: #421328;
  font: 700 13px/1.1 system-ui, sans-serif; text-align: center; text-decoration: none; text-shadow: none;
}
:is(#sidebar .sjgsm-sideapp, .sjgsm-sideapp) a.sjgsm-sideapp__open:hover { background: #ffe4a7; color: #421328; text-decoration: none; }
:is(#sidebar .sjgsm-sideapp, .sjgsm-sideapp) a.sjgsm-sideapp__open:focus-visible { outline: 2px solid #fff5de; outline-offset: 2px; }
@container sjgsm-sideapp-slot (max-width: 170px) {
  .sjgsm-sideapp .sjgsm-sideapp__title { font-size: clamp(18px, calc((var(--side-h) - 160px) / 1.1), 20px); }
}

/* The original post compacts on touch. Keep the sidebar at the full desktop
   reference height, even if the theme assigns the phone a wide layout viewport. */
@media (hover: none) and (pointer: coarse), (max-width: 600px) {
  .sjgsm-sideapp-slot > .sjgsm-sideapp {
    --side-h: var(--sjgsm-fallback-height, 253.2px);
  }
}

/* The calendar's engraved sun, planetary orbits and moon fill the whole card. */
.sjgsm-sideapp-slot > .sjgsm-sideapp {
  background-color: #41192a;
  background-image: linear-gradient(180deg, rgba(27, 6, 15, .18), rgba(42, 9, 24, .14) 26%, transparent 49%, rgba(35, 9, 19, .15) 83%, transparent), url("celestial-plate.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-blend-mode: normal, screen;
}
.sjgsm-sideapp :is(.sjgsm-sideapp__brand, .sjgsm-sideapp__title, .sjgsm-sideapp__note, .sjgsm-sideapp__summary) {text-shadow: 0 1px 2px #210b13;}
.sjgsm-sideapp :is(.sjgsm-sideapp__brand, .sjgsm-sideapp__title, .sjgsm-sideapp__note, .sjgsm-sideapp__summary) {
  position: relative;
  isolation: isolate;
}
.sjgsm-sideapp :is(.sjgsm-sideapp__brand, .sjgsm-sideapp__title, .sjgsm-sideapp__note, .sjgsm-sideapp__summary)::before {
  content: "";
  position: absolute;
  inset: -.06em -.55em;
  z-index: -1;
  pointer-events: none;
  border-radius: 35%;
  background: rgba(36, 8, 20, .64);
  filter: blur(2px);
}
.sjgsm-sideapp img.sjgsm-sideapp__qr {
  position: relative;
  z-index: 1;
}
@media (forced-colors: active) {
  .sjgsm-sideapp :is(.sjgsm-sideapp__brand, .sjgsm-sideapp__title, .sjgsm-sideapp__note, .sjgsm-sideapp__summary)::before {display: none;}
  .sjgsm-sideapp-slot > .sjgsm-sideapp {background-image: none;}
}
