/* Shared presentation for the unchanged Closed List app previews. */
.iphone-frame {
  position: relative;
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 2.4%;
  isolation: isolate;
  background: #101113;
  border: 1px solid #66676d;
  border-radius: 14.5% / 6.8%;
  /* On a dark page the warm drop shadow disappears and the near-black body sits
     on near-black paper. The device keeps its own colours; a hairline rim in the
     dark design-system hairline separates it from the page instead. */
  --frame-outer-dark: 0 0 0 3px #2e2d2a;
  box-shadow: 0 0 0 1px #141518, inset 0 0 0 1px #909197,
    var(--frame-outer, 0 14px 30px #14110e26);
}

.iphone-frame img.iphone-screen {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  border: 0;
  border-radius: 13% / 6.1%;
  box-shadow: none;
}

/* Device chrome sits in the previews' empty top and bottom safe areas. */
.iphone-frame::before,
.iphone-frame::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: 50%;
  transform: translateX(-50%);
  background: #09090a;
  border-radius: 999px;
  pointer-events: none;
}

.iphone-frame::before {
  top: 2.5%;
  width: 29%;
  height: 3.2%;
}

.iphone-frame::after {
  bottom: 2.5%;
  width: 31%;
  height: .5%;
}

.iphone-hardware {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.iphone-hardware::before,
.iphone-hardware::after {
  content: "";
  position: absolute;
  width: 1%;
  border-radius: 2px;
}

.iphone-hardware::before {
  left: -1%;
  top: 17%;
  height: 21%;
  background: linear-gradient(to bottom, #55565b 0 12%, transparent 12% 28%,
    #55565b 28% 58%, transparent 58% 68%, #55565b 68% 100%);
}

.iphone-hardware::after {
  right: -1%;
  top: 25%;
  height: 13%;
  background: #55565b;
}

/* Screen only: printed pages keep the light treatment. */
@media screen and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .iphone-frame {
    --frame-outer: var(--frame-outer-dark);
  }
}
@media screen {
  :root[data-theme="dark"] .iphone-frame {
    --frame-outer: var(--frame-outer-dark);
  }
}
