.journey-desktop-only { display: none; }

@media (min-width: 64rem) and (min-height: 34rem) {
  body:has(> #screen > .path-journey) > #screen {
    max-inline-size: none;
    padding-block-end: clamp(.85rem, 2vh, 1.75rem);
  }

  .path-journey {
    grid-template: auto minmax(0, 1fr) / minmax(14rem, 30%) minmax(0, 1fr);
    column-gap: clamp(.85rem, 1.8vw, 1.8rem);
    row-gap: clamp(.7rem, 1.6vh, 1.3rem);
    max-inline-size: 82rem;
  }

  .journey-title.screen-reader-only {
    position: static;
    grid-column: 1 / -1;
    inline-size: auto;
    block-size: auto;
    margin: 0;
    overflow: visible;
    clip-path: none;
    white-space: normal;
    font-size: 1.6rem;
    line-height: 1.4;
  }

  .path-journey .journey-top {
    align-self: start;
    display: grid;
    gap: .65rem;
    max-block-size: 100%;
    padding: clamp(.65rem, 1.1vw, .95rem);
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    border: 1px solid var(--divider);
    border-radius: 1.2rem;
    background: color-mix(in srgb, var(--surface) 82%, transparent);
  }

  .path-journey .journey-bar {
    display: grid;
    justify-content: stretch;
    gap: .6rem;
    margin: 0;
  }

  .path-journey .journey-course {
    justify-content: start;
    gap: .55rem;
    width: 100%;
    min-width: 0;
    padding-inline: .7rem;
    text-align: start;
    background: var(--card);
    border-radius: .75rem;
  }

  .journey-course .journey-course-name {
    display: block;
    flex: 1;
    min-width: 0;
    line-height: 1.4;
    overflow-wrap: anywhere;
    font-weight: 700;
  }

  .path-journey .journey-course > :is(.globe, .app-icon) { flex: none; }
  .path-journey .journey-stats { justify-content: start; flex-wrap: wrap; gap: .25rem; }
  .path-journey .journey-stat { padding-inline: .48rem; }
  .path-journey .journey-stat.trophy { display: inline-flex; }

  .path-journey .journey-header {
    gap: .25rem;
    padding: .65rem .9rem;
    border: 1px solid var(--divider);
    background: var(--surface);
    border-radius: 1.15rem;
    align-items: start;
  }
  .path-journey .journey-header strong { font-size: 1.2rem; line-height: 1.35; }
  .path-journey .journey-header small {
    font-size: .83rem;
    line-height: 1.65;
    white-space: normal;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .path-journey .journey-context { line-height: 1.45; }
  .path-journey .journey-context > .app-icon { flex: none; }
  .path-journey .journey-map { gap: .65rem; }
  .path-journey .journey-map > .jump-action { align-self: center; margin: 0; }

  .journey-section-progress {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: .35rem;
    padding: .1rem .25rem;
    font-size: .8rem;
  }
  .journey-section-progress > span:last-of-type { color: var(--muted); }
  .journey-section-progress progress {
    grid-column: 1 / -1;
    height: .32rem;
    border: 0;
    border-radius: 1rem;
    background: var(--card);
  }
  .journey-section-progress progress::-webkit-progress-bar { background: var(--card); border-radius: inherit; }
  .journey-section-progress progress::-webkit-progress-value { background: var(--accent); border-radius: inherit; }
  .journey-section-progress progress::-moz-progress-bar { background: var(--accent); border-radius: inherit; }

  .journey-resume { display: grid; gap: .4rem; }
  .journey-resume-label {
    color: var(--muted);
    overflow-wrap: anywhere;
    font-size: .84rem;
    line-height: 1.45;
    text-align: start;
  }
  .journey-resume .primary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    text-align: start;
  }

  .path-journey .journey-viewport {
    min-inline-size: 0;
    padding: .4rem clamp(.55rem, 2vw, 1.65rem) 2.5rem;
    scroll-padding-block: .4rem;
  }

  .path-journey .path-unit {
    max-inline-size: 49rem;
    margin: 0 auto;
    padding-block: .55rem .9rem;
  }
  .path-journey .path-unit > h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    margin: .25rem 0 .6rem;
    color: var(--muted);
    font-size: .9rem;
    font-weight: 700;
    overflow-wrap: anywhere;
  }
  .path-unit > h2::before, .path-unit > h2::after {
    content: '';
    flex: 1 1 16%;
    min-inline-size: 1rem;
    border-block-start: 1px solid var(--divider);
  }

  .path-journey .path-nodes { gap: .75rem; }
  :root:not([data-accessible-learning="true"]) .path-journey .path-node {
    gap: .36rem;
    max-inline-size: min(17rem, calc(100% - 7rem));
    padding: .26rem .72rem;
    transform: none;
  }
  :root:not([data-accessible-learning="true"]) .path-journey .path-node:nth-child(4n+1) {
    transform: translateX(-3rem);
  }
  :root:not([data-accessible-learning="true"]) .path-journey .path-node:nth-child(4n+3) {
    transform: translateX(3rem);
  }
  .path-journey .path-node-label {
    font-size: .91rem;
    overflow-wrap: anywhere;
    line-height: 1.55;
  }
  .path-journey .path-node:focus-visible { outline-offset: -3px; }
  :root[data-accessible-learning="true"] .path-nodes { gap: .2rem; }
  :root[data-accessible-learning="true"] .path-node-label { font-size: .95rem; }
}
