@media (max-width: 1180px) {
  .journey-home-grid { grid-template-columns: 1fr; }
  .step-guide {
    position: static;
    display: grid;
    max-height: none;
    grid-template-columns: minmax(210px, 0.45fr) 1fr;
    gap: 26px;
    overflow: visible;
  }
  .step-guide-head { padding-bottom: 0; }
  .potential-journey { min-width: 0; }
}

@media (max-width: 1020px) {
  .portal-shell.is-journey-home .project-areas-link,
  .portal-shell.is-journey-home .portal-view-tools > span { display: none; }
}

@media (max-width: 780px) {
  .portal-shell.is-journey-home .portal-topbar { min-height: 76px; padding-inline: 16px; }
  .portal-shell.is-journey-home .portal-content { padding: 32px 16px 56px; }
  .portal-shell.is-journey-home .portal-topbar > div:first-child > .project-dot,
  .portal-shell.is-journey-home .portal-topbar > div:first-child > strong,
  .portal-shell.is-journey-home .portal-topbar > div:first-child > small { display: none; }
  .portal-topbar-actions { margin-left: auto; gap: 6px; }
  .portal-shell.is-journey-home .role-avatar { display: none; }
  .portal-view-tools > span,
  .project-areas-link { display: none; }
  .portal-view-tools { border: 0; padding: 0; background: transparent; }
  .portal-topbrand img { width: 40px; }
  .journey-overview,
  .journey-home-grid,
  .journey-intro > div:first-child { min-width: 0; }
  .journey-intro { display: grid; align-items: start; }
  .journey-intro h1 { max-width: 100%; font-size: clamp(2.65rem, 12.5vw, 3.35rem); }
  .journey-intro > div:first-child > p:last-child { overflow-wrap: anywhere; }
  .journey-position { width: 100%; min-width: 0; }
  .journey-heading { display: grid; }
  .journey-counts { justify-content: flex-start; }
  .journey-next-action { display: grid; }
  .journey-next-action .primary-action { width: 100%; }
  .journey-scope-note { display: grid; }
  .journey-legend { gap: 8px 12px; }
  .potential-journey {
    min-width: 0;
    height: auto;
    margin-top: 26px;
  }
  .potential-journey-track,
  .optional-path-label { display: none; }
  .potential-stage-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 12px;
  }
  .potential-stage-grid::before {
    content: "";
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 20px;
    width: 1px;
    background: var(--portal-line-strong);
  }
  .potential-stage {
    grid-row: auto !important;
    grid-column: auto !important;
  }
  .potential-stage > button,
  .potential-stage > div {
    position: relative;
    grid-template-columns: 42px 1fr;
    justify-items: start;
    gap: 13px;
    padding: 0;
    text-align: left;
  }
  .potential-stage-number,
  .potential-stage.is-current .potential-stage-number {
    position: static;
    z-index: 2;
    width: 40px;
    height: 40px;
    margin: 0;
  }
  .potential-stage.is-current .potential-stage-number { box-shadow: 0 0 0 5px var(--portal-accent-soft), 0 0 22px var(--portal-glow); }
  .potential-stage-copy { max-width: none; justify-items: start; align-self: center; }
  .potential-stage.is-optional { margin-left: 28px; }
  .potential-stage.is-optional > div {
    padding: 9px;
    border: 1px dashed var(--portal-line-strong);
    border-radius: 12px;
    background: var(--portal-panel-strong);
  }
  .step-guide { display: block; padding: 24px 20px; }
  .step-guide-head { padding-bottom: 18px; }
}
