/* Game gateways share proportions, while materials and markings belong to each game. */
.page .platform-gateways {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px;
  background: none;
  border: 0;
}
.page .platform-gateway {
  --gate-bg: #f1e7cc;
  --gate-ink: #342b1c;
  --gate-muted: #62543a;
  --gate-line: #b9a37c;
  --gate-accent: #63451e;
  grid-column: span 2;
  background: var(--gate-bg);
  color: var(--gate-ink);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--gate-line);
  position: relative;
  min-width: 0;
  box-shadow: 0 4px 14px #0002;
  padding: 0;
  gap: 0;
}
.page .platform-gateway:nth-child(-n + 2) {
  grid-column: span 3;
}
html[data-nexus-tone] .page .platform-gateway a {
  color: inherit;
}
.platform-gateway :focus-visible {
  outline-color: var(--gate-accent);
}
.gateway-cover {
  display: block;
  position: relative;
  border-bottom: 1px solid var(--gate-line);
  text-decoration: none;
}
.page .platform-gateway .gateway-cover img {
  display: block;
  width: 100%;
  height: 155px;
  object-fit: cover;
}
.gateway-edition {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 20px;
  background: var(--gate-accent);
  color: var(--gate-bg);
  font: 600 10px/1.4 system-ui;
  letter-spacing: 0.12em;
}
html[data-nexus-tone] .page .gateway-edition > span,
html[data-nexus-tone] .page .gateway-edition > b {
  color: inherit;
}
.gateway-edition b {
  font:
    18px/1 Georgia,
    serif;
}
html[data-nexus-tone] .page .gateway-osrs .gateway-edition {
  color: #fff2d6;
}
.gateway-content {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
html[data-nexus-tone] .page .platform-gateway h2 {
  font-size: clamp(23px, 2.2vw, 30px);
  line-height: 1.1;
  margin: 0 0 10px;
  color: var(--gate-ink);
}
.platform-gateway h2 a {
  text-decoration: none;
}
.platform-gateway h2 a:hover {
  text-decoration: underline;
}
html[data-nexus-tone] .page .platform-gateway p {
  margin: 0 0 18px;
  color: var(--gate-muted);
  font-size: 13px;
  line-height: 1.5;
}
.page .platform-gateway nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-size: 12px;
  margin-top: auto;
}
.platform-gateway nav a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 36px;
  text-underline-offset: 3px;
}
.page .platform-gateway .gateway-workflow {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  font-size: 11px;
  color: var(--gate-muted);
  padding: 12px 0;
  margin: 0 0 12px;
  border-block: 1px solid var(--gate-line);
  line-height: 1.4;
}
.gateway-workflow li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-inline: 10px;
  border-inline-end: 1px solid var(--gate-line);
}
.gateway-workflow li:first-child {
  padding-inline-start: 0;
}
.gateway-workflow li:last-child {
  border: 0;
  padding-inline-end: 0;
}
html[data-nexus-tone] .page .gateway-workflow .gateway-step {
  font:
    bold 18px/1 Georgia,
    serif;
  color: var(--gate-accent);
}
.gateway-enter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  gap: 12px;
  margin-top: 12px;
  border-top: 1px solid var(--gate-line);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.gateway-enter:hover {
  text-decoration: underline;
}
.gateway-enter > span {
  font-size: 22px;
}
.page .gateway-osrs {
  border: 3px double #b19867;
}
.gateway-osrs .gateway-content {
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 27px,
    #9b793608 27px,
    #9b793608 28px
  );
}
.gateway-osrs .gateway-edition {
  font-family: Georgia, serif;
}
.page .gateway-ffxiv {
  --gate-bg: #f9f5eb;
  --gate-ink: #372745;
  --gate-muted: #625467;
  --gate-line: #c5b5cd;
  --gate-accent: #634774;
  border-radius: 2px 20px 2px 2px;
}
.gateway-ffxiv .gateway-cover img {
  border-top-right-radius: 19px;
}
.gateway-ffxiv .gateway-content {
  border-inline-start: 5px solid #d9cbb2;
}
.gateway-ffxiv .gateway-edition {
  background: #e6dced;
  color: #513467;
}
.page .gateway-eve {
  --gate-bg: #0c202b;
  --gate-ink: #d9f3fa;
  --gate-muted: #adc8d2;
  --gate-line: #395667;
  --gate-accent: #89d6ed;
}
.gateway-eve .gateway-cover img {
  filter: saturate(0.65);
}
.gateway-eve h2,
.gateway-eve .gateway-edition,
.gateway-eve .gateway-step,
.gateway-eve .gateway-enter {
  font-family: ui-monospace, monospace;
}
.gateway-eve .gateway-edition {
  background: #193b4b;
  color: #bfefff;
  border-left: 4px solid #89d6ed;
}
.page .gateway-eve .gateway-workflow {
  background: #112c3a;
  padding: 12px;
}
.page .gateway-palworld {
  --gate-bg: #eaf0de;
  --gate-ink: #223c2a;
  --gate-muted: #49603f;
  --gate-line: #b0c09b;
  --gate-accent: #355b32;
  border-radius: 18px 2px 2px 2px;
}
.gateway-palworld .gateway-cover img {
  border-top-left-radius: 17px;
}
.gateway-palworld .gateway-edition {
  background: #d3dfbb;
  color: #2d4c29;
}
.page .gateway-palworld .gateway-workflow {
  border: 1px dashed #829b6d;
  padding: 12px;
}
html[data-nexus-tone] .page .gateway-palworld .gateway-step {
  border: 1px solid #829b6d;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  font-size: 13px;
}
.page .gateway-pokemon-go {
  --gate-bg: #f4fafc;
  --gate-ink: #123b52;
  --gate-muted: #385e73;
  --gate-line: #adcbd7;
  --gate-accent: #145c7b;
  border-radius: 18px;
}
.gateway-pokemon-go .gateway-cover img {
  border-radius: 17px 17px 0 0;
}
.gateway-pokemon-go h2 {
  font-family: system-ui, sans-serif;
  font-weight: 750;
}
.gateway-pokemon-go .gateway-edition {
  background: #d7edf4;
  color: #164e68;
}
.page .gateway-pokemon-go .gateway-workflow {
  border: 0;
  border-top: 2px dashed #adcbd7;
}
.gateway-pokemon-go .gateway-workflow li {
  border: 0;
}
html[data-nexus-tone] .page .gateway-pokemon-go .gateway-step {
  font-size: 12px;
}
html[data-nexus-tone] .page .gateway-pokemon-go .gateway-enter {
  border: 0;
  background: #145c7b;
  color: #fff;
  border-radius: 24px;
  padding: 0 16px;
}
/* Catalogue and selected recipe are independent panes. */
.workshop-collection-counts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  border-bottom: 1px solid var(--work-line);
  padding-bottom: 16px;
  margin-bottom: 24px;
}
.workshop-collection-counts > span {
  color: var(--work-muted);
  font-size: 12px;
}
.home-ffxiv {
  display: block;
  --work-accent: #68517f;
}
html[data-nexus-variant="alternate"] .home-ffxiv {
  --work-accent: #d1b8f0;
}
.workshop-browser {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.85fr);
  gap: 32px;
  align-items: start;
}
.workshop-catalogue,
.workshop-selection {
  min-width: 0;
}
.workshop-job-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--work-line);
}
.workshop-job-bar button {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 10px;
  background: transparent;
  color: var(--work-ink);
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 12px;
}
.workshop-job-bar button[aria-pressed="true"] {
  background: var(--work-accent);
  color: var(--theme-on-accent);
  border-color: var(--work-accent);
}
.workshop-job-bar button:hover {
  border-color: var(--work-accent);
}
.workshop-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(100px, 0.65fr) 100px;
  gap: 12px;
  margin: 20px 0;
}
.workshop-filters label,
.workshop-quantity {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
}
.workshop-filters input,
.workshop-filters select {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  min-height: 44px;
}
.workshop-results-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}
.workshop-results-heading h2 {
  font-size: 20px;
  margin: 0;
}
.workshop-results-heading > span {
  font-size: 12px;
  color: var(--work-muted);
}
.workshop-results {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 540px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  border-block: 1px solid var(--work-line);
}
.workshop-results li {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--work-line);
}
.workshop-results button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 16px;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--work-ink);
  padding: 12px 10px;
  min-height: 60px;
}
.workshop-results button[aria-pressed="true"] {
  background: var(--theme-raised);
  box-shadow: inset 3px 0 var(--work-accent);
}
.workshop-results button:hover {
  background: var(--theme-raised);
}
.workshop-results button:focus-visible {
  outline-offset: -3px;
}
.workshop-results strong {
  display: block;
  font-size: 14px;
}
.workshop-results small {
  display: block;
  font-size: 11px;
  margin-top: 3px;
  color: var(--work-muted);
}
.workshop-result-jobs {
  text-align: right;
}
.workshop-pagination {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
  font-size: 12px;
}
.workshop-pagination button {
  min-height: 44px;
}
.workshop-selection {
  position: sticky;
  top: 92px;
  padding: 20px;
  background: var(--work-surface);
  border: 1px solid var(--work-line);
  border-top: 3px solid var(--work-accent);
}
.workshop-selection > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.workshop-selection h2 {
  font-size: 22px;
  margin: 0;
}
.workshop-selection > header button {
  font-size: 12px;
  min-height: 44px;
}
.workshop-selected-job {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 12px;
  color: var(--work-muted);
  margin-bottom: 16px;
}
.workshop-quantity {
  width: 140px;
  margin-bottom: 16px;
}
.workshop-selection .craft-tray {
  margin-bottom: 18px;
}
.workshop-selection .craft-tray header {
  flex-wrap: wrap;
}
.workshop-selection-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  font-size: 12px;
}
.workshop-empty-tray {
  text-align: center;
  padding: 45px 12px;
}
.empty-tray-mark {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  border-block: 1px solid var(--work-line);
  padding: 24px;
  margin-bottom: 26px;
  color: var(--work-accent);
}
.workshop-empty-tray h3 {
  font-size: 24px;
}
.workshop-empty-tray p {
  max-width: 36ch;
  margin: 14px auto 22px;
  line-height: 1.6;
  color: var(--work-muted);
}
.workshop-support {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 30px;
  border-top: 1px solid var(--work-line);
  padding-top: 20px;
}
.workshop-support .home-navigation {
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
}
@media (max-width: 1100px) {
  .page .platform-gateways {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
  .page .platform-gateway,
  .page .platform-gateway:nth-child(-n + 2) {
    grid-column: auto;
  }
  .page .platform-gateway:last-child {
    grid-column: 1/-1;
  }
}
@media (max-width: 1000px) {
  .workshop-filters {
    grid-template-columns: 1fr 100px;
  }
  .workshop-search {
    grid-column: 1/-1;
  }
}
@media (max-width: 800px) {
  .workshop-browser {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .workshop-browser.has-selection .workshop-catalogue {
    display: none;
  }
  .workshop-browser:not(.has-selection) .workshop-selection {
    display: none;
  }
  .workshop-selection {
    position: static;
    padding: 16px;
  }
  .workshop-results {
    max-height: none;
    overflow: visible;
  }
  .workshop-support {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .page .platform-gateways {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .page .platform-gateway,
  .page .platform-gateway:nth-child(-n + 2),
  .page .platform-gateway:last-child {
    grid-column: auto;
  }
  .page .platform-gateway .gateway-cover img {
    height: 128px;
  }
  .gateway-content {
    padding: 20px;
  }
  html[data-nexus-tone] .page .platform-gateway h2 {
    font-size: 27px;
  }
  .gateway-edition {
    padding: 9px 20px;
  }
  .workshop-collection-counts {
    gap: 12px 20px;
  }
}
