/* V39: one Oshi night field, editorial release notes, and a product-first module catalog. */
:root {
  --oshi-shared-background: linear-gradient(180deg, #000 0%, #2c397d 50.86%, #000 100%);
  --oshi-editorial-measure: min(var(--oshi-content, 1224px), calc(100% - 2 * clamp(20px, 4.8vw, 68px)));
}

/* Reuse the homepage's night-blue field on every route. Embedded ClickGUI frames keep their own ground. */
html:not(.preview-embed) {
  min-height: 100%;
  background: #000;
}
html:not(.preview-embed) body {
  background: var(--oshi-shared-background) fixed !important;
}

/* Remove the crop-mark frame that made every page feel like the same generated template. */
.global-header.v35-site-header::before,
.global-header.v35-site-header::after {
  display: none !important;
  content: none !important;
}
.global-header.v35-site-header {
  width: var(--oshi-editorial-measure);
  margin-inline: auto;
  padding-inline: 0;
  background: transparent;
}

/* Updates: an open release ledger. The dates anchor one side; the notes carry the reading column. */
.changelog-page .stage-shape,
.page-modules .stage-shape { display: none !important; }
.changelog-page .changelog-main {
  width: var(--oshi-editorial-measure);
  max-width: none;
  padding: clamp(34px, 4.8vw, 64px) 0 72px;
}
.changelog-page .changelog-intro { width: 100%; max-width: none; }
.changelog-page .changelog-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
  align-items: end;
  gap: clamp(28px, 6vw, 92px);
  width: 100%;
  margin: clamp(24px, 3.5vw, 48px) 0 clamp(42px, 5vw, 66px);
  padding: 0;
  text-align: left;
}
.changelog-page .changelog-kicker,
.changelog-page .changelog-star { display: none; }
.changelog-page .changelog-heading h1 {
  grid-column: 1;
  max-width: none;
  margin: 0;
  font-size: clamp(58px, 7.2vw, 92px);
  font-weight: 500;
  line-height: .94;
  letter-spacing: -.075em;
  text-align: left;
  animation: v39-title-in 720ms 100ms cubic-bezier(.22, 1, .36, 1) both;
}
.changelog-page .changelog-lead {
  grid-column: 2;
  max-width: 40ch;
  margin: 0 0 4px;
  color: #d0d6e5;
  font-size: 17px;
  line-height: 1.55;
  text-align: left;
  animation: v39-copy-in 600ms 230ms cubic-bezier(.22, 1, .36, 1) both;
}
.changelog-page .changelog-feed { width: 100%; max-width: none; margin: 0; }
.changelog-page .changelog-feed-head {
  min-height: 0;
  padding: 0 0 12px;
  animation: none;
}
.changelog-page .changelog-feed-head h2 {
  margin: 0;
  color: var(--oshi-ink, #f6f7fb);
  font-size: clamp(22px, 2vw, 27px);
  font-weight: 500;
  letter-spacing: -.045em;
}
.changelog-page .changelog-feed-head p { color: #d0d6e5; font-size: 14px; }
.changelog-page .changelog-filters {
  justify-content: flex-start;
  gap: clamp(16px, 2.4vw, 30px);
  margin: 8px 0 20px;
  overflow-x: auto;
  scrollbar-width: none;
}
.changelog-page .changelog-filters::-webkit-scrollbar { display: none; }
.changelog-page .changelog-filters button {
  position: relative;
  flex: 0 0 auto;
  min-height: 36px;
  padding: 4px 0 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #c0c8da;
  font-size: 14px;
  animation: none;
  transition: color 180ms ease;
}
.changelog-page .changelog-filters button::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: transparent;
  content: "";
  transform: scaleX(.25);
  transform-origin: left;
  transition: background-color 180ms ease, transform 220ms cubic-bezier(.22, 1, .36, 1);
}
.changelog-page .changelog-filters button.active { background: transparent; color: #fff; }
.changelog-page .changelog-filters button.active::after { background: var(--oshi-blue, #527cff); transform: scaleX(1); }
.changelog-page .changelog-filters button:hover { background: transparent; color: #fff; transform: none; }
.changelog-page .changelog-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
}
.changelog-page .changelog-list::before { display: none; }
.changelog-page .changelog-entry {
  display: grid;
  grid-template-columns: minmax(150px, .62fr) minmax(0, 1.7fr);
  gap: clamp(32px, 7vw, 104px);
  align-items: start;
  padding: 27px 0 32px;
  border: 0;
  background: transparent;
  opacity: 1;
  transform: none;
  animation: none;
}
.changelog-page .changelog-entry::before { display: none; }
.changelog-page .changelog-time {
  padding: 4px 0 0;
  color: #b8c9ff;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  animation: none;
}
.changelog-page .changelog-meta {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 8px;
  min-width: 0;
  padding-top: 4px;
}
.changelog-page .changelog-meta .changelog-tags { gap: 8px; }
.changelog-page .changelog-card {
  grid-column: 2;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: none;
}
.changelog-page .changelog-card-top { margin: 0 0 9px; animation: none; }
.changelog-page .changelog-tags { gap: 12px; }
.changelog-page .changelog-tag {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #adc4ff;
  font-size: 13px;
  font-weight: 500;
  animation: none;
}
.changelog-page .changelog-card h3 {
  margin: 0 0 9px;
  color: #f6f7fb;
  font-size: clamp(22px, 2.2vw, 29px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.045em;
  animation: none;
}
.changelog-page .changelog-summary {
  max-width: 68ch;
  margin: 0;
  color: #d0d6e5;
  font-size: 16px;
  line-height: 1.55;
  animation: none;
}
.changelog-page .changelog-changes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 28px;
  margin: 14px 0 0;
  padding-left: 18px;
  list-style: disc;
}
.changelog-page .changelog-changes li {
  padding: 0;
  color: #edf0f7;
  font-size: 14px;
  line-height: 1.5;
  animation: none;
}
.changelog-page .changelog-changes li::before { display: none; }
.changelog-page .changelog-changes li::marker { color: #7e9cff; }
.changelog-page .changelog-empty { padding: 8px 0; background: transparent; }
.changelog-page .compact-footer { background: transparent; }
.changelog-page .changelog-entry:not(.is-visible) { opacity: 1; transform: none; }
html.motion-ready .changelog-page .changelog-entry:not(.is-visible) {
  opacity: 0;
  transform: translate3d(0, 12px, 0);
}
html.motion-ready .changelog-page .changelog-entry.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 520ms cubic-bezier(.22, 1, .36, 1), transform 520ms cubic-bezier(.22, 1, .36, 1);
}

/* Modules: let the actual ClickGUI be the page's main event, full width and easy to inspect. */
.page-modules .modules-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  align-items: start;
  gap: 0;
  width: var(--oshi-editorial-measure);
  min-height: 0;
  margin-inline: auto;
  padding: clamp(34px, 4.8vw, 64px) 0 56px;
}
.page-modules .modules-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(260px, .88fr);
  align-items: end;
  gap: clamp(20px, 5vw, 72px);
  width: 100%;
  max-width: none;
  margin: clamp(20px, 3vw, 42px) 0 clamp(28px, 4vw, 48px);
  animation: v39-copy-in 660ms 100ms cubic-bezier(.22, 1, .36, 1) both;
}
.page-modules .modules-copy .back-link { display: none; }
.page-modules .modules-copy h1 {
  grid-column: 1;
  max-width: none;
  margin: 0;
  color: #f6f7fb;
  font-size: clamp(60px, 7.2vw, 92px);
  font-weight: 500;
  line-height: .94;
  letter-spacing: -.075em;
  animation: none;
}
.page-modules .modules-copy p {
  grid-column: 2;
  max-width: 39ch;
  margin: 0 0 4px;
  color: #d0d6e5;
  font-size: 17px;
  line-height: 1.55;
}
.page-modules .client-preview {
  width: 100%;
  height: min(680px, calc(100svh - 360px));
  min-height: 520px;
  border: 1px solid rgba(211, 222, 255, .2);
  border-radius: 10px;
  box-shadow: none;
  animation: v39-preview-in 760ms 260ms cubic-bezier(.22, 1, .36, 1) both;
}
.page-modules .module-item-text strong { font-size: 14px; }
.page-modules .module-item-text small { color: #aeb6c7; font-size: 11px; }
.page-modules .module-filters button,
.page-modules .preview-tabs button { font-size: 14px; }
.page-modules .preview-main-head h2 { font-size: 15px; }
.page-modules .preview-main-head output { color: #b7c3dd; font-size: 12px; }
.page-modules .inspection-description,
.page-modules .inspector-summary p,
.page-modules .panel-copy { color: #bdc7d9; font-size: 12px; }
.page-modules .setting-label { color: #edf0f7; font-size: 12px; }
.page-modules .setting-select,
.page-modules .setting-value,
.page-modules .demo-button,
.page-modules .demo-input { font-size: 12px; }

@keyframes v39-title-in {
  from { opacity: 0; transform: translate3d(0, 14px, 0); clip-path: inset(0 0 24% 0); }
  to { opacity: 1; transform: none; clip-path: inset(0); }
}
@keyframes v39-copy-in {
  from { opacity: 0; transform: translate3d(0, 10px, 0); }
  to { opacity: 1; transform: none; }
}
@keyframes v39-preview-in {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .changelog-page .changelog-heading,
  .page-modules .modules-copy {
    grid-template-columns: minmax(0, 1fr) minmax(220px, .82fr);
    gap: 22px 32px;
  }
  .changelog-page .changelog-heading h1,
  .page-modules .modules-copy h1 { font-size: clamp(54px, 8vw, 72px); }
  .page-modules .client-preview { height: min(680px, calc(100svh - 340px)); min-height: 500px; }
}
@media (max-width: 680px) {
  .changelog-page .changelog-main,
  .page-modules .modules-stage { width: calc(100% - 36px); }
  .changelog-page .changelog-main { padding-top: 32px; }
  .changelog-page .changelog-heading,
  .page-modules .modules-copy { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .changelog-page .changelog-heading { margin: 20px 0 32px; }
  .changelog-page .changelog-heading h1,
  .page-modules .modules-copy h1 { grid-column: 1; font-size: clamp(52px, 12vw, 72px); }
  .changelog-page .changelog-lead,
  .page-modules .modules-copy p { grid-column: 1; max-width: 48ch; font-size: 16px; }
  .changelog-page .changelog-feed-head h2 { font-size: 23px; }
  .changelog-page .changelog-filters { gap: 20px; margin-bottom: 14px; }
  .changelog-page .changelog-filters button { font-size: 13px; }
  .changelog-page .changelog-entry { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 22px 0 26px; }
  .changelog-page .changelog-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px 12px; padding: 0; }
  .changelog-page .changelog-time { padding: 0; font-size: 13px; }
  .changelog-page .changelog-card { grid-column: 1; }
  .changelog-page .changelog-card h3 { font-size: 23px; }
  .changelog-page .changelog-changes { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .page-modules .modules-stage { padding: 30px 0 38px; }
  .page-modules .modules-copy { margin: 16px 0 24px; }
  .page-modules .modules-copy h1 { font-size: 56px; }
  .page-modules .client-preview { height: 74svh; min-height: 480px; border-radius: 9px; }
}
@media (max-width: 420px) {
  .changelog-page .changelog-main,
  .page-modules .modules-stage { width: calc(100% - 32px); }
  .changelog-page .changelog-heading h1 { font-size: 50px; }
  .page-modules .modules-copy h1 { font-size: 52px; }
  .page-modules .client-preview { height: 72svh; min-height: 450px; }
  .page-modules .preview-tabs { gap: 0; padding-inline: 4px; }
  .page-modules .preview-tabs button { min-width: 0; padding-inline: 4px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .changelog-page .changelog-heading h1,
  .changelog-page .changelog-lead,
  .page-modules .modules-copy,
  .page-modules .client-preview {
    animation-duration: 420ms;
  }
  .changelog-page .changelog-heading h1,
  .changelog-page .changelog-lead,
  .page-modules .modules-copy,
  .page-modules .client-preview {
    animation-timing-function: ease-out;
  }
  html.motion-ready .changelog-page .changelog-entry:not(.is-visible) {
    opacity: 0;
    transform: translate3d(0, 5px, 0);
  }
  html.motion-ready .changelog-page .changelog-entry.is-visible {
    transition-duration: 360ms;
  }
}
