:root {
  --ink: #101014;
  --paper: #f7f5ef;
  --surface: #ffffff;
  --line: rgba(16, 16, 20, 0.14);
  --soft-line: rgba(16, 16, 20, 0.08);
  --muted: #65645f;
  --blue: #225cff;
  --green: #18c487;
  --gold: #e0ae2b;
  --violet: #6f42d2;
  --shadow: 0 18px 48px rgba(16, 16, 20, 0.12);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  background:
    linear-gradient(90deg, rgba(34, 92, 255, 0.08) 0 1px, transparent 1px 100%) 0 0 / 72px 72px,
    linear-gradient(0deg, rgba(34, 92, 255, 0.06) 0 1px, transparent 1px 100%) 0 0 / 72px 72px,
    var(--paper);
}

body,
button {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

h1,
h2,
p,
dl,
dd {
  margin: 0;
}

img {
  max-width: 100%;
}

.update-page {
  width: min(1240px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.document-header {
  display: grid;
  gap: 18px;
  padding: 22px 0 24px;
  border-bottom: 1px solid var(--line);
}

.header-kicker,
.row-source,
.status-strip span,
.module-heading,
.closeout span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.header-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.header-kicker span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.64);
  padding: 0 9px;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  max-width: 920px;
  font-size: 72px;
  line-height: 0.94;
}

.dek {
  max-width: 780px;
  color: #333333;
  font-size: 19px;
  line-height: 1.52;
}

.source-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.source-row a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0 12px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.source-row a:hover,
.source-row a:focus-visible {
  border-color: var(--blue);
  outline: 0;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 16px 0;
  border: 1px solid var(--line);
  background: var(--line);
}

.status-strip div {
  min-width: 0;
  background: rgba(255, 255, 255, 0.9);
  padding: 14px;
}

.status-strip strong {
  display: block;
  margin-top: 5px;
  font-size: 18px;
  line-height: 1.1;
}

.update-list {
  display: grid;
  gap: 12px;
}

.update-row {
  position: relative;
  display: grid;
  grid-template-columns: 70px minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  padding: 18px;
  box-shadow: 0 10px 24px rgba(16, 16, 20, 0.05);
}

.update-row::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--blue);
}

.update-row:nth-child(4n + 2)::before {
  background: var(--green);
}

.update-row:nth-child(4n + 3)::before {
  background: var(--gold);
}

.update-row:nth-child(4n + 4)::before {
  background: var(--violet);
}

.row-index {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid var(--line);
  background: var(--ink);
  color: #ffffff;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 18px;
  font-weight: 900;
}

.row-copy {
  min-width: 0;
  padding-top: 2px;
}

.row-source {
  color: var(--blue);
}

h2 {
  margin-top: 6px;
  font-size: 35px;
  line-height: 0.98;
}

.request-copy {
  display: grid;
  gap: 0;
  margin-top: 14px;
  border-top: 1px solid var(--soft-line);
}

.request-copy div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--soft-line);
}

.request-copy dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.request-copy dd {
  color: #30302d;
  font-size: 15px;
  line-height: 1.42;
}

.screenshot-module {
  position: relative;
  min-width: 0;
}

.screenshot-module::after {
  content: "";
  position: absolute;
  top: 26px;
  right: 0;
  bottom: 10px;
  width: 34px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.96));
}

.module-heading {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 2px 0 8px;
}

.screenshot-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 20px 10px 0;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--ink) rgba(16, 16, 20, 0.12);
  scrollbar-width: thin;
}

.screenshot-card {
  flex: 0 0 260px;
  min-width: 0;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbf9;
  padding: 8px;
  text-align: left;
  cursor: pointer;
}

.screenshot-card:hover,
.screenshot-card:focus-visible {
  border-color: var(--blue);
  outline: 0;
  box-shadow: 0 12px 28px rgba(34, 92, 255, 0.14);
  transform: translateY(-1px);
}

.shot-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--soft-line);
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(16, 16, 20, 0.05) 0 1px, transparent 1px 100%) 0 0 / 18px 18px,
    #ffffff;
}

.screenshot-card--mobile .shot-frame {
  aspect-ratio: 9 / 13;
}

.screenshot-card--narrow .shot-frame {
  aspect-ratio: 4 / 5;
}

.screenshot-card--mrec .shot-frame {
  aspect-ratio: 6 / 5;
}

.screenshot-card--banner .shot-frame {
  aspect-ratio: 16 / 4;
}

.screenshot-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.screenshot-card--banner img {
  object-fit: fill;
}

.open-cue {
  position: absolute;
  right: 8px;
  bottom: 8px;
  opacity: 0;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  background: rgba(16, 16, 20, 0.82);
  color: #ffffff;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 900;
  transition: opacity 140ms ease;
}

.screenshot-card:hover .open-cue,
.screenshot-card:focus-visible .open-cue {
  opacity: 1;
}

.shot-caption {
  display: block;
  min-height: 42px;
  padding: 8px 2px 0;
  color: #242421;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.28;
}

.closeout {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  padding: 18px;
}

.closeout span {
  color: var(--green);
}

.closeout p {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.42;
}

.lightbox {
  width: min(1120px, calc(100% - 28px));
  max-width: none;
  max-height: calc(100% - 28px);
  border: 0;
  border-radius: 8px;
  background: transparent;
  padding: 0;
}

.lightbox::backdrop {
  background: rgba(8, 8, 10, 0.78);
}

.lightbox-frame {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  max-height: calc(100vh - 28px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #111113;
  color: #ffffff;
  padding: 14px;
}

.lightbox-top,
.lightbox-bottom {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.lightbox-top {
  grid-template-columns: minmax(0, 1fr) auto;
}

.lightbox-top p {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.lightbox img {
  display: block;
  width: 100%;
  max-height: calc(100vh - 174px);
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: #ffffff;
}

.lightbox[data-shape="banner"] img {
  height: min(260px, calc(100vh - 174px));
  object-fit: fill;
}

.lightbox[data-shape="mrec"] img {
  width: min(680px, 100%);
  justify-self: center;
}

.lightbox button {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 0 13px;
  font-weight: 900;
  cursor: pointer;
}

.lightbox button:hover,
.lightbox button:focus-visible {
  background: #ffffff;
  color: #111113;
  outline: 0;
}

#lightboxCaption {
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.32;
  text-align: center;
}

@media (max-width: 980px) {
  .update-page {
    width: min(100% - 20px, 760px);
    padding-top: 18px;
  }

  h1 {
    font-size: 48px;
  }

  .dek {
    font-size: 17px;
  }

  .status-strip {
    grid-template-columns: 1fr;
  }

  .update-row {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .row-index {
    width: 42px;
    height: 42px;
    font-size: 14px;
  }

  .screenshot-module {
    grid-column: 1 / -1;
  }

  .screenshot-card {
    flex-basis: min(78%, 280px);
  }

  .closeout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .update-page {
    width: calc(100% - 16px);
    padding-bottom: 34px;
  }

  .document-header {
    gap: 14px;
  }

  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 28px;
  }

  .source-row a {
    flex: 1 1 auto;
    justify-content: center;
  }

  .update-row {
    gap: 12px;
    padding: 14px;
  }

  .request-copy div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .screenshot-strip {
    padding-right: 12px;
  }

  .screenshot-card {
    flex-basis: 82%;
  }

  .lightbox {
    width: calc(100% - 14px);
    max-height: calc(100% - 14px);
  }

  .lightbox-frame {
    max-height: calc(100vh - 14px);
    padding: 10px;
  }

  .lightbox-bottom {
    grid-template-columns: 1fr 1fr;
  }

  #lightboxCaption {
    grid-column: 1 / -1;
    grid-row: 1;
    text-align: left;
  }

  .lightbox-nav {
    grid-row: 2;
  }
}
