/* Editorial and technical pages share the site's palette, but follow the density of each task. */
.subpage {
  --editorial-paper: #f3eedf;
  --editorial-ink: #10120e;
  --editorial-panel: #1a1e16;
  --editorial-rule: #42483b;
  --editorial-muted: #b9bead;
  --editorial-signal: #d5eb8a;
  color: var(--editorial-paper);
  background: var(--editorial-ink);
  min-height: 75svh;
  padding-bottom: clamp(64px, 9vw, 132px);
}

.subpage :is(a, input, select, summary):focus-visible {
  outline: 2px solid var(--editorial-signal);
  outline-offset: 4px;
}

.subpage .page-head {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(16rem, .85fr);
  align-items: end;
  gap: 18px clamp(26px, 6vw, 92px);
  padding-block: clamp(64px, 9vw, 134px) clamp(38px, 6vw, 80px);
}

.subpage .page-head .eyebrow {
  grid-column: 1 / -1;
  color: var(--editorial-signal);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .035em;
  text-transform: none;
}

.subpage .page-head h1 {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(3.2rem, 6.7vw, 7.25rem);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.045em;
  word-spacing: .035em;
  text-wrap: balance;
}

.subpage .page-head .lede {
  max-width: 38ch;
  margin-bottom: .18em;
  color: var(--editorial-muted);
  font-size: clamp(1rem, 1.28vw, 1.17rem);
  line-height: 1.62;
  text-wrap: pretty;
}

.subpage :is(.bottom-link, .download-links) {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding-block: 20px 0;
}

.subpage .button {
  min-height: 46px;
  border-radius: 2px;
  white-space: normal;
}

.subpage .button.primary {
  background: var(--editorial-signal);
  border-color: var(--editorial-signal);
  color: var(--editorial-ink);
}

.subpage .button.primary:hover {
  background: var(--editorial-paper);
  border-color: var(--editorial-paper);
}

.subpage .button.secondary {
  background: transparent;
  border-color: #666d57;
  color: var(--editorial-paper);
}

.subpage .button.secondary:hover {
  background: var(--editorial-panel);
  border-color: var(--editorial-signal);
}

.subpage .button.text-button {
  color: var(--editorial-signal);
}

.subpage .button.text-button:hover {
  text-decoration: underline;
  text-underline-offset: .25em;
}

/* Feature filmstrip: authentic remote UI fragments carry the story. */
.subpage .feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--editorial-rule);
  border-left: 1px solid var(--editorial-rule);
}

.subpage .feature-tile {
  grid-column: auto;
  display: grid;
  align-content: start;
  grid-template-rows: auto auto 1fr;
  padding: 0 0 clamp(23px, 3.4vw, 44px);
  min-width: 0;
  border: 0;
  border-bottom: 1px solid var(--editorial-rule);
  border-right: 1px solid var(--editorial-rule);
  border-radius: 0;
  background: transparent;
}

.subpage .feature-tile:first-child {
  --feature-photo: url('./assets/feature-playback.webp');
}

.subpage .feature-tile:nth-child(2) {
  --feature-photo: url('./assets/feature-episode.webp');
}

.subpage .feature-tile:nth-child(3) {
  --feature-photo: url('./assets/feature-intro.webp');
}

.subpage .feature-tile:nth-child(4) {
  --feature-photo: url('./assets/feature-timer.webp');
}

.subpage .feature-tile:nth-child(5) {
  --feature-photo: url('./assets/feature-windows.webp');
}

.subpage .feature-tile:nth-child(6) {
  --feature-photo: url('./assets/feature-source.webp');
}

.subpage .tile-symbol {
  display: block;
  overflow: hidden;
  height: clamp(128px, 19vw, 240px);
  margin: 0 0 clamp(18px, 3vw, 38px);
  border-bottom: 1px solid var(--editorial-rule);
  background: var(--feature-photo) center / auto 83% no-repeat #0d1015;
}

.subpage .feature-tile:nth-child(2) .tile-symbol,
.subpage .feature-tile:nth-child(3) .tile-symbol,
.subpage .feature-tile:nth-child(4) .tile-symbol {
  background-size: min(82%, 346px) auto;
}

.subpage .tile-symbol > * {
  display: none;
}

.subpage .feature-tile h2 {
  margin: 0 clamp(19px, 3.5vw, 44px) 10px;
  font-size: clamp(1.6rem, 3vw, 2.85rem);
  font-weight: 550;
  line-height: 1.08;
  letter-spacing: -.036em;
}

.subpage .feature-tile p {
  max-width: 54ch;
  margin-inline: clamp(19px, 3.5vw, 44px);
  color: var(--editorial-muted);
  line-height: 1.65;
}

/* Compatibility stays an index so readers can compare profiles at a glance. */
.subpage .filters {
  grid-template-columns: minmax(0, 1.7fr) repeat(2, minmax(0, 1fr));
  padding: 20px 0;
  gap: 12px 20px;
  border: 0;
  border-block: 1px solid var(--editorial-rule);
  border-radius: 0;
  background: transparent;
}

.subpage .filters label {
  min-width: 0;
  color: var(--editorial-paper);
  font-size: .875rem;
  font-weight: 550;
}

.subpage .filters :is(input, select) {
  width: 100%;
  min-height: 48px;
  border: 1px solid #666d57;
  border-radius: 2px;
  background: var(--editorial-panel);
  color: var(--editorial-paper);
  color-scheme: dark;
  font-size: 1rem;
}

.subpage .filters input::placeholder {
  color: var(--editorial-muted);
  opacity: .9;
}

.subpage .catalog-summary {
  align-items: baseline;
  padding-block: 17px;
  gap: 10px 20px;
}

.subpage .catalog-summary p {
  color: var(--editorial-muted);
  font-size: .875rem;
}

.subpage .catalog-summary [role="status"] {
  color: var(--editorial-signal);
  font-variant-numeric: tabular-nums;
}

.subpage .catalog [data-empty] {
  padding-block: 24px 36px;
  color: var(--editorial-paper);
}

.subpage .profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(22px, 4vw, 52px);
}

.subpage .profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto 1fr auto;
  align-items: start;
  align-content: start;
  column-gap: 12px;
  min-width: 0;
  padding: 20px 0 13px;
  border: 0;
  border-top: 1px solid var(--editorial-rule);
  border-radius: 0;
  background: transparent;
}

.subpage .profile-category {
  grid-column: 1 / -1;
  color: var(--editorial-muted);
  font: 500 .78rem/1.4 var(--font);
  letter-spacing: .015em;
  text-transform: none;
}

.subpage .profile h2 {
  align-self: center;
  margin: 7px 0 0;
  font: 620 1.45rem/1.16 var(--font);
  letter-spacing: -.035em;
}

.subpage .validation,
.subpage .validation.unvalidated {
  justify-self: end;
  align-self: center;
  margin-top: 7px;
  padding: 3px 7px;
  border: 1px solid #606552;
  border-radius: 2px;
  background: transparent;
  color: var(--editorial-muted);
  font: 500 .72rem/1.4 var(--font);
  text-align: center;
}

.subpage .validation.verified,
.subpage .validation.partial,
.subpage .validation.fixture {
  border-color: #737f56;
  background: #242b19;
  color: var(--editorial-signal);
}

.subpage .commands {
  grid-column: 1 / -1;
  gap: 4px 15px;
  margin-block: 13px 0;
}

.subpage .commands li {
  position: relative;
  padding: 0 0 0 9px;
  border: 0;
  background: transparent;
  color: var(--editorial-muted);
  font-size: .8rem;
}

.subpage .commands li::before {
  position: absolute;
  inset: .61em auto auto 0;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #9ea489;
  content: "";
}

.subpage .profile details {
  grid-column: 1 / -1;
  font-size: .875rem;
  color: var(--editorial-signal);
}

.subpage .profile details summary {
  display: list-item;
  align-content: center;
  min-height: 44px;
}

.subpage .profile details summary:hover {
  text-decoration: underline;
  text-underline-offset: .2em;
}

.subpage .profile details p {
  color: var(--editorial-muted);
  line-height: 1.6;
}

/* Downloads read like a release sheet. */
.subpage .release-meta {
  justify-content: space-between;
  align-items: baseline;
  padding-block: 12px 16px;
  border-top: 1px solid var(--editorial-rule);
  color: var(--editorial-muted);
  font: 500 .86rem/1.4 var(--font);
}

.subpage .release-meta strong {
  color: var(--editorial-signal);
  font: 600 .9rem/1.4 var(--mono);
}

.subpage .download-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px 28px;
  padding-block: 24px;
  border-color: var(--editorial-rule);
}

.subpage .download-list article:first-child {
  margin-inline: 0;
  padding: clamp(20px, 3.2vw, 42px);
  border: 1px solid #677354;
  background: #202819;
}

.subpage .download-list article:first-child + article {
  border-top: 0;
}

.subpage .download-list h2 {
  margin-bottom: 8px;
  color: var(--editorial-paper);
  font-size: clamp(1.58rem, 2.75vw, 2.7rem);
  font-weight: 600;
  line-height: 1.08;
}

.subpage .download-list p {
  max-width: 59ch;
  color: var(--editorial-muted);
}

.subpage .file-size {
  margin-top: 11px;
  font-size: .8rem;
}

.subpage .unavailable {
  align-self: center;
  max-width: 20ch;
  color: var(--editorial-muted);
  text-align: right;
  line-height: 1.35;
}

.subpage .download-links {
  border-color: var(--editorial-rule);
  padding-bottom: 40px;
}

/* Reading pages use stable measures and different treatments for sequences. */
.subpage .reading,
.subpage .reading-row,
.subpage .faq,
.subpage .faq details {
  border-color: var(--editorial-rule);
}

.subpage .reading-row {
  grid-template-columns: minmax(45px, 13%) minmax(0, 1fr);
  gap: 0 10px;
  padding-block: clamp(21px, 3.2vw, 41px);
}

.subpage .reading-row > span {
  color: var(--editorial-signal);
  font: 500 .8rem/1.4 var(--mono);
}

.subpage .reading-row h2 {
  margin: 0 0 10px;
  color: var(--editorial-paper);
  font-size: clamp(1.4rem, 2.6vw, 2.35rem);
  font-weight: 570;
  line-height: 1.14;
  letter-spacing: -.036em;
}

.subpage .reading-row p {
  max-width: 68ch;
  color: var(--editorial-muted);
  line-height: 1.68;
  text-wrap: pretty;
}

.subpage:has(.screenshots) .page-head + .bottom-link {
  margin-top: -22px;
  padding-block: 0 24px;
}

.subpage:has(.screenshots) .reading-row {
  grid-template-columns: minmax(0, 1fr);
}

.subpage:has(.screenshots) .reading-row > span {
  display: none;
}

.subpage .screenshots {
  padding-block: clamp(44px, 8vw, 104px) 0;
}

.subpage .screenshots h2 {
  margin-bottom: 18px;
  font-size: clamp(2.15rem, 5vw, 4.3rem);
  font-weight: 570;
  letter-spacing: -.04em;
  line-height: 1.05;
}

.subpage .screenshots > p {
  margin-bottom: 16px;
  color: var(--editorial-muted);
}

.subpage .screenshots > div {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: 1px;
  padding: 1px;
  background: var(--editorial-rule);
}

.subpage .screenshots a {
  display: block;
  padding: clamp(9px, 1.6vw, 20px);
  background: #171a14;
}

.subpage .screenshots a:hover,
.subpage .screenshots a:focus-visible {
  position: relative;
  z-index: 1;
  background: #202819;
}

.subpage .screenshots img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: #0d1015;
}

.subpage .timeline {
  --timeline-gap: clamp(22px, 4vw, 62px);
}

.subpage .timeline .reading-row {
  position: relative;
  grid-template-columns: var(--timeline-gap) minmax(0, 1fr);
  gap: 0 18px;
}

.subpage .timeline .reading-row > span {
  position: relative;
  min-height: 32px;
  font-size: 0;
}

.subpage .timeline .reading-row > span::before {
  position: absolute;
  inset: 0 auto auto 8px;
  width: 10px;
  height: 10px;
  background: var(--editorial-ink);
  border: 1px solid var(--editorial-signal);
  border-radius: 50%;
  content: "";
}

.subpage .timeline .reading-row:first-child > span::before {
  background: var(--editorial-signal);
}

.subpage .timeline .reading-row h2 {
  font-variant-numeric: tabular-nums;
  font-size: clamp(2rem, 5vw, 4.9rem);
  line-height: 1;
}

.subpage .timeline time {
  color: var(--editorial-signal);
  font-size: .84rem;
}

.subpage .timeline .bottom-link {
  margin-left: calc(var(--timeline-gap) + 18px);
}

.subpage .faq {
  max-width: 68rem;
  margin-inline: auto;
}

.subpage .faq details {
  padding: 0;
}

.subpage .faq summary {
  position: relative;
  display: block;
  align-content: center;
  min-height: 62px;
  padding: 14px 48px 14px 0;
  color: var(--editorial-paper);
  font-size: clamp(1.03rem, 2vw, 1.34rem);
  line-height: 1.3;
  font-weight: 570;
  list-style: none;
}

.subpage .faq summary::-webkit-details-marker {
  display: none;
}

.subpage .faq summary::after {
  position: absolute;
  inset: 50% 7px auto auto;
  transform: translateY(-50%);
  color: var(--editorial-signal);
  font: 400 1.32rem/1 var(--mono);
  content: "+";
}

.subpage .faq details[open] summary::after {
  content: "−";
}

.subpage .faq details[open] summary,
.subpage .faq summary:hover {
  color: var(--editorial-signal);
}

.subpage .faq details p {
  max-width: 67ch;
  padding: 0 30px 21px 0;
  color: var(--editorial-muted);
  line-height: 1.65;
}

.subpage:is([data-page="privacy"], [data-page="legal"]) .reading {
  max-width: 68rem;
}

.subpage:is([data-page="privacy"], [data-page="legal"]) .reading-row {
  grid-template-columns: minmax(0, 1fr);
}

.subpage:is([data-page="privacy"], [data-page="legal"]) .reading-row > span {
  display: none;
}

@media (min-width: 801px) {
  .subpage .feature-tile:is(:first-child, :last-child) {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    grid-template-rows: 1fr auto auto 1fr;
    min-height: 270px;
    padding: 0;
  }

  .subpage .feature-tile:is(:first-child, :last-child) .tile-symbol {
    grid-column: 1;
    grid-row: 1 / -1;
    height: auto;
    min-height: 270px;
    margin: 0;
    border-right: 1px solid var(--editorial-rule);
    border-bottom: 0;
    background-size: auto 87%;
  }

  .subpage .feature-tile:is(:first-child, :last-child) h2 {
    grid-column: 2;
    grid-row: 2;
  }

  .subpage .feature-tile:is(:first-child, :last-child) p {
    grid-column: 2;
    grid-row: 3;
  }
}

@media (min-width: 1000px) {
  .subpage:has(.screenshots) {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, .88fr);
    align-items: start;
    gap: 0 clamp(36px, 6vw, 96px);
    width: min(100% - clamp(36px, 9vw, 144px), 1330px);
    margin-inline: auto;
  }

  .subpage:has(.screenshots) > .wrap {
    width: 100%;
  }

  .subpage:has(.screenshots) > :is(.page-head, .bottom-link) {
    grid-column: 1 / -1;
  }

  .subpage .screenshots {
    padding: 0;
    border-top: 1px solid var(--editorial-rule);
  }

  .subpage .screenshots h2 {
    margin-block: 27px 15px;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
  }

  .subpage .screenshots > div {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 890px) {
  .subpage .page-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .subpage .page-head .lede {
    max-width: 55ch;
  }
}

@media (max-width: 660px) {
  .subpage .page-head {
    padding-block: 48px 34px;
  }

  .subpage .page-head h1 {
    font-size: clamp(2.65rem, 11vw, 4.4rem);
  }

  .subpage :is(.feature-grid, .profile-grid, .screenshots > div) {
    grid-template-columns: minmax(0, 1fr);
  }

  .subpage .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 10px;
  }

  .subpage .filters label:first-child {
    grid-column: 1 / -1;
  }

  .subpage .filters select {
    font-size: .9rem;
  }

  .subpage .tile-symbol {
    height: clamp(148px, 46vw, 230px);
  }

  .subpage .download-list article {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
  }

  .subpage .unavailable {
    text-align: left;
    max-width: none;
  }

  .subpage .catalog-summary {
    align-items: start;
  }

  .subpage .profile {
    column-gap: 8px;
  }

  .subpage .validation {
    max-width: 16ch;
  }

  .subpage .timeline .bottom-link {
    margin-left: 0;
  }
}

@media (max-width: 420px) {
  .subpage .catalog-summary {
    display: grid;
  }
}
