/* Home page Playground section: one browser window with a tab per experiment. Everything scoped under .pgh7. */
.pgh7 {
  --pgh7-grid: rgba(255, 255, 255, 0.045);
  position: relative;
  padding: 60px var(--layout-margin);
  display: grid;
  gap: calc(var(--layout-block-gap) + 16px); /* more room between the heading and the window */
  background-color: var(--ink-900);
  background-image:
    linear-gradient(var(--pgh7-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--pgh7-grid) 1px, transparent 1px);
  background-size: 24px 24px;
}
.pgh7 > * { width: 100%; }
.pgh7 .pgh7__header { gap: 16px; }
.pgh7 .section-header__text { max-width: 620px; }

.pgh7 .pgh7__window { grid-template-rows: auto auto; background: var(--white); overflow: hidden; }

/* Browser-style tabs: the open tab (Rejection City) is white and flows straight into the page below, with the
   curved feet real browser tabs have; the coming-soon tabs sit quietly in the tab bar, split by thin dividers. */
.pgh7__tabs {
  --pgh7-bar: #E6E7EC;
  list-style: none;
  margin: 0;
  padding: 0 14px 0 0;
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--pgh7-bar);
}
.pgh7__tabs::-webkit-scrollbar { display: none; }
.pgh7__tab {
  position: relative;
  flex: 1 1 0;
  min-width: 168px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-height: 64px;
  padding: 10px 20px;
  color: #55565C;
}
.pgh7__tab-name { font-size: 14px; line-height: 20px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pgh7__tab-status { font-size: 12px; line-height: 16px; font-weight: 500; }
/* thin divider between quiet tabs, hidden next to the open one */
.pgh7__tab--soon + .pgh7__tab--soon::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 1px;
  background: #C4C6CE;
}
.pgh7__tab--active {
  flex: 1.35 1 0;
  z-index: 1;
  padding: 0;
  /* the open tab: white from the window's top-left corner down to the picture, the grey bar only behind the rest */
  border-radius: 0 12px 0 0;
  background: var(--white);
  color: var(--ink-950);
}
/* the curved feet that join the open tab to the page */
.pgh7__tab--active::before,
.pgh7__tab--active::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 10px;
  height: 10px;
  pointer-events: none;
}
.pgh7__tab--active::before { display: none; }
.pgh7__tab--active::after { right: -10px; background: radial-gradient(circle at 100% 0, var(--pgh7-bar) 10px, var(--white) 10.5px); }
.pgh7__tab-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 72px;
  padding: 12px 24px;
  border-radius: inherit;
  color: inherit;
  text-decoration: none;
}
.pgh7__tab-link .pgh7__tab-name { font-size: 18px; line-height: 24px; font-weight: 800; }
.pgh7__tab-link .pgh7__tab-status { font-size: 13px; font-weight: 700; color: #17663A; white-space: nowrap; }
.pgh7__tab-link:focus-visible { outline: 2px solid var(--blue-600); outline-offset: -4px; }

.pgh7__stage { margin: 0; }
.pgh7 .pgh7__shot-link { display: block; cursor: pointer; }
.pgh7__shot { display: block; width: 100%; height: auto; transition: filter 200ms var(--ease-standard); }
.pgh7 .pgh7__shot-link:hover .pgh7__shot { filter: brightness(1.04); }

.pgh7__caption {
  display: grid;
  gap: 8px 24px;
  padding: 16px;
  border-top: 1px solid var(--grey-100);
  background: var(--white);
  color: var(--ink-700);
}
.pgh7__summary { margin: 0; max-width: 980px; font-size: 16px; line-height: 24px; font-weight: 500; color: var(--ink-950); text-wrap: pretty; }
.pgh7__line { display: block; } /* one sentence per line */
.pgh7__meta { margin: 0; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink-600); }
.pgh7 .pgh7__play { justify-self: start; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; margin-top: 8px; padding-inline: 22px; text-decoration: none; white-space: nowrap; }
.pgh7__play-icon { width: 14px; height: 14px; fill: currentColor; }
.pgh7 .pgh7__play:focus-visible { outline: 2px solid var(--blue-600); outline-offset: 2px; }

.pgh7__credit { margin: 0; color: var(--text-supporting); font-size: 14px; line-height: 20px; }

@media (min-width: 768px) {
  .pgh7__caption {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "summary play" "meta play";
    align-items: center;
    column-gap: 48px;
    padding: 24px 32px;
  }
  .pgh7__summary { grid-area: summary; }
  .pgh7__meta { grid-area: meta; }
  .pgh7 .pgh7__play { grid-area: play; margin-top: 0; }
}
@media (min-width: 1200px) {
  .pgh7 { padding: 100px var(--layout-margin); }
}
@media (prefers-reduced-motion: reduce) {
  .pgh7__shot { transition: none; }
}

/* Phones: the open tab keeps its full name ("Rejection City"); the coming-soon tabs scroll beside it. */
@media (max-width: 767px) {
  .pgh7__tabs { overflow: visible; padding-right: 0; }
  .pgh7__tab--soon { display: none; }
  .pgh7__tab--active { flex: 1 1 auto; border-radius: 12px 12px 0 0; }
  .pgh7__tab--active::after { display: none; }
  .pgh7__tab--active .pgh7__tab-name { overflow: visible; text-overflow: clip; }
}
