/* Desktop layout. Linked with
   media="(min-width: 1024px) and (hover: hover) and (pointer: fine)"
   so these rules never apply to the phone layout. */

html.is-desktop .app:has(.desk-nav) {
  max-width: none;
  margin: 0;
  padding:
    calc(20px + var(--safe-top))
    calc(36px + var(--safe-right))
    calc(28px + var(--safe-bottom))
    calc(300px + var(--safe-left));
}

html.is-desktop .wrap {
  width: min(1120px, 100%);
}

html.is-desktop .desk-nav {
  position: fixed;
  z-index: 5;
  top: 0;
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: 272px;
  padding: calc(12px + var(--safe-top)) 12px calc(12px + var(--safe-bottom));
  background: rgba(18, 20, 26, 0.96);
  border-right: 1px solid var(--line);
}

html.is-desktop .desk-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: var(--tap);
  margin: 0 0 8px;
  padding: 8px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-align: left;
  cursor: pointer;
}

html.is-desktop .desk-logo img {
  width: 36px;
  height: 36px;
  flex: none;
}

html.is-desktop .desk-logo:hover,
html.is-desktop .tabbar a:hover,
html.is-desktop .choice:hover,
html.is-desktop .card:hover,
html.is-desktop .class-chip:hover {
  background: var(--amber-soft);
}

html.is-desktop .desk-kicker {
  margin: 8px 8px 6px;
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

html.is-desktop .tabbar {
  position: static;
  flex-direction: column;
  gap: 4px;
  padding: 0;
  background: transparent;
  border-top: 0;
}

html.is-desktop .tabbar a {
  flex: none;
  justify-content: flex-start;
  padding: 0 12px;
}

html.is-desktop .desk-foot {
  margin-top: auto;
  padding: 12px 8px 0;
}

html.is-desktop .desk-foot .credit {
  margin: 0;
}

html.is-desktop .class-row {
  flex-wrap: wrap;
  overflow: visible;
}

html.is-desktop .perk-columns,
html.is-desktop .card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

@media (min-width: 1400px) {
  html.is-desktop .perk-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

html.is-desktop section > .stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

html.is-desktop .column > .stack,
html.is-desktop .panel > .stack {
  display: flex;
}

html.is-desktop .perk-columns > *,
html.is-desktop .card-grid > * {
  min-width: 0;
}
